<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>Disjoint Stable Set Problems - Formulations by Representatives and Combinatorial Solvers: datastruct/OrderedSet.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">Disjoint Stable Set Problems - Formulations by Representatives and Combinatorial Solvers
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.1.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>File&#160;Members</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Friends</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&#160;</span>Macros</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_f9af7c4329e6f916a6a58dc83cbb7ef1.html">datastruct</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">OrderedSet.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="OrderedSet_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">/*</span></div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment"> * OrderedSet.h</span></div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment"> *  Created on: 30/08/2012</span></div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment"> *      Author: marcio</span></div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment"> */</span></div>
<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;</div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="preprocessor">#ifndef ORDEREDSET_H_</span></div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define ORDEREDSET_H_</span></div>
<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;</div>
<div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">typename</span> T&gt;</div>
<div class="line"><a name="l00036"></a><span class="lineno"><a class="code" href="classDirectlyAddressedSet.html">   36</a></span>&#160;<span class="keyword">class </span><a class="code" href="classDirectlyAddressedSet.html" title="A dynamic set of elements with direct addressing.">DirectlyAddressedSet</a> {</div>
<div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;</div>
<div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;<span class="keyword">protected</span>:</div>
<div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;</div>
<div class="line"><a name="l00040"></a><span class="lineno"><a class="code" href="classDirectlyAddressedSet.html#a1b7ff73603cbd484024a558cd5b93064">   40</a></span>&#160;        <span class="keywordtype">long</span> <a class="code" href="classDirectlyAddressedSet.html#a1b7ff73603cbd484024a558cd5b93064" title="the number of elements in the universe.">n</a>;</div>
<div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;</div>
<div class="line"><a name="l00047"></a><span class="lineno"><a class="code" href="classDirectlyAddressedSet.html#a7737a832f3a17976b952c5ec446d4294">   47</a></span>&#160;        <a class="code" href="classDirectlyAddressedSet.html#a7737a832f3a17976b952c5ec446d4294" title="Copy Constructor.">DirectlyAddressedSet</a>(){};</div>
<div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;</div>
<div class="line"><a name="l00056"></a><span class="lineno"><a class="code" href="classDirectlyAddressedSet.html#a653e554fdd2c002916c3bf4a41d3627a">   56</a></span>&#160;        <a class="code" href="classDirectlyAddressedSet.html#a653e554fdd2c002916c3bf4a41d3627a" title="Basic Constructor.">DirectlyAddressedSet</a>(<span class="keywordtype">long</span> <a class="code" href="classDirectlyAddressedSet.html#a078e95f3c6f02c31159c8759ec9306b4" title="The size of the universe.">size</a>){ <a class="code" href="classDirectlyAddressedSet.html#a1b7ff73603cbd484024a558cd5b93064" title="the number of elements in the universe.">n</a> = <a class="code" href="classDirectlyAddressedSet.html#a078e95f3c6f02c31159c8759ec9306b4" title="The size of the universe.">size</a>;};</div>
<div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;</div>
<div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;</div>
<div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;</div>
<div class="line"><a name="l00077"></a><span class="lineno"><a class="code" href="classDirectlyAddressedSet_1_1Iterator.html">   77</a></span>&#160;        <span class="keyword">class </span><a class="code" href="classDirectlyAddressedSet_1_1Iterator.html">Iterator</a> {</div>
<div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;        <span class="keyword">public</span>:</div>
<div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;</div>
<div class="line"><a name="l00085"></a><span class="lineno"><a class="code" href="classDirectlyAddressedSet_1_1Iterator.html#a2835dbdbdd9eeea252b7785b14e34d31">   85</a></span>&#160;                <span class="keyword">virtual</span> <a class="code" href="classDirectlyAddressedSet_1_1Iterator.html#a2835dbdbdd9eeea252b7785b14e34d31" title="The destructor.">~Iterator</a>(){};</div>
<div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;</div>
<div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;                <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classDirectlyAddressedSet_1_1Iterator.html#afde13f5d9e0dd82597959f22a414676a" title="Start the enumeration.">start</a>() = 0;</div>
<div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;</div>
<div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;                <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classDirectlyAddressedSet_1_1Iterator.html#a01ec7074dbd7b24e874565bc6ae53234" title="Restart the enumeration.">restart</a>() = 0;</div>
<div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;</div>
<div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160;                <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classDirectlyAddressedSet_1_1Iterator.html#afbfa5ea3b7d98aa38516fd9b4357822a" title="Restart the enumeration from a specified element.">restartFrom</a>(T i) = 0;</div>
<div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;</div>
<div class="line"><a name="l00131"></a><span class="lineno">  131</span>&#160;                <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classDirectlyAddressedSet_1_1Iterator.html#ad70bbb3ac269e9fa2601d5b4c20e3f4b" title="Verify if the set has same element not enumerated yet.">hasNext</a>() = 0;</div>
<div class="line"><a name="l00132"></a><span class="lineno">  132</span>&#160;</div>
<div class="line"><a name="l00146"></a><span class="lineno">  146</span>&#160;                <span class="keyword">virtual</span> T <a class="code" href="classDirectlyAddressedSet_1_1Iterator.html#ad6c581f7e5ec3a49f14d14fbc6ec1af2" title="Enumerate the elements in the set.">next</a>() = 0;</div>
<div class="line"><a name="l00147"></a><span class="lineno">  147</span>&#160;        };</div>
<div class="line"><a name="l00148"></a><span class="lineno">  148</span>&#160;</div>
<div class="line"><a name="l00154"></a><span class="lineno">  154</span>&#160;        <span class="keyword">virtual</span> <a class="code" href="classDirectlyAddressedSet.html#a991cec5739a4c2db59332a454d46c14a" title="Destructor.">~DirectlyAddressedSet</a>();</div>
<div class="line"><a name="l00155"></a><span class="lineno">  155</span>&#160;</div>
<div class="line"><a name="l00163"></a><span class="lineno">  163</span>&#160;        <span class="keyword">virtual</span> <a class="code" href="classDirectlyAddressedSet.html" title="A dynamic set of elements with direct addressing.">DirectlyAddressedSet&lt;T&gt;</a>* <a class="code" href="classDirectlyAddressedSet.html#acbfacfc756fdcc89bc1ff220253d94e5" title="Create a copy of this object.">clone</a>() = 0;</div>
<div class="line"><a name="l00164"></a><span class="lineno">  164</span>&#160;</div>
<div class="line"><a name="l00174"></a><span class="lineno">  174</span>&#160;        <span class="keyword">virtual</span> <a class="code" href="classDirectlyAddressedSet_1_1Iterator.html">DirectlyAddressedSet&lt;T&gt;::Iterator</a>* <a class="code" href="classDirectlyAddressedSet.html#aa0a1268c76c9243443d148c1eedb543c" title="A Iterator for the set represented by the object.">newSetIterator</a>() = 0;</div>
<div class="line"><a name="l00175"></a><span class="lineno">  175</span>&#160;</div>
<div class="line"><a name="l00186"></a><span class="lineno">  186</span>&#160;        <span class="keyword">virtual</span> <a class="code" href="classDirectlyAddressedSet_1_1Iterator.html">DirectlyAddressedSet&lt;T&gt;::Iterator</a>* <a class="code" href="classDirectlyAddressedSet.html#aa0a1268c76c9243443d148c1eedb543c" title="A Iterator for the set represented by the object.">newSetIterator</a>(<a class="code" href="classDirectlyAddressedSet.html" title="A dynamic set of elements with direct addressing.">DirectlyAddressedSet&lt;T&gt;</a>* filter) = 0;</div>
<div class="line"><a name="l00187"></a><span class="lineno">  187</span>&#160;</div>
<div class="line"><a name="l00197"></a><span class="lineno">  197</span>&#160;        <span class="keyword">virtual</span> <a class="code" href="classDirectlyAddressedSet_1_1Iterator.html">DirectlyAddressedSet&lt;T&gt;::Iterator</a>* <a class="code" href="classDirectlyAddressedSet.html#a8a481c4ef2de99d83f37f04196fb4f38" title="A Iterator for the complement of the set represented by the object.">newComplIterator</a>() = 0;</div>
<div class="line"><a name="l00198"></a><span class="lineno">  198</span>&#160;</div>
<div class="line"><a name="l00209"></a><span class="lineno">  209</span>&#160;        <span class="keyword">virtual</span> <a class="code" href="classDirectlyAddressedSet_1_1Iterator.html">DirectlyAddressedSet&lt;T&gt;::Iterator</a>* <a class="code" href="classDirectlyAddressedSet.html#a8a481c4ef2de99d83f37f04196fb4f38" title="A Iterator for the complement of the set represented by the object.">newComplIterator</a>(<a class="code" href="classDirectlyAddressedSet.html" title="A dynamic set of elements with direct addressing.">DirectlyAddressedSet&lt;T&gt;</a>* filter) = 0;</div>
<div class="line"><a name="l00210"></a><span class="lineno">  210</span>&#160;</div>
<div class="line"><a name="l00223"></a><span class="lineno">  223</span>&#160;        <span class="keyword">virtual</span> T <a class="code" href="classDirectlyAddressedSet.html#aca5de768e104b0d096c952ab43f30cba" title="The smallest element bigger or equal to the element i in the set.">nextSetElement</a>(T i) = 0;</div>
<div class="line"><a name="l00224"></a><span class="lineno">  224</span>&#160;</div>
<div class="line"><a name="l00237"></a><span class="lineno">  237</span>&#160;        <span class="keyword">virtual</span> T <a class="code" href="classDirectlyAddressedSet.html#a661332e9dacf1feba0cabde6ffca1270" title="The smallest element bigger or equal to the element i in the complement.">nextComplElement</a>(T i) = 0;</div>
<div class="line"><a name="l00238"></a><span class="lineno">  238</span>&#160;</div>
<div class="line"><a name="l00249"></a><span class="lineno">  249</span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classDirectlyAddressedSet.html#a7c87b183797e4273764d37877cc197ef" title="Add the specified element to the set.">toSet</a>(T i) = 0;</div>
<div class="line"><a name="l00250"></a><span class="lineno">  250</span>&#160;</div>
<div class="line"><a name="l00260"></a><span class="lineno">  260</span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classDirectlyAddressedSet.html#ae136960dd88b57fa3e04537c05fdf315" title="Remove the specified element of the set.">toCompl</a>(T i) = 0;</div>
<div class="line"><a name="l00261"></a><span class="lineno">  261</span>&#160;</div>
<div class="line"><a name="l00273"></a><span class="lineno">  273</span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classDirectlyAddressedSet.html#ae3f708aa95649ecae727f2acc5999c38" title="Swap a element between the set and the complement.">swapElement</a>(T i);</div>
<div class="line"><a name="l00274"></a><span class="lineno">  274</span>&#160;</div>
<div class="line"><a name="l00286"></a><span class="lineno">  286</span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classDirectlyAddressedSet.html#a783217cdd441159295d9a95196fdcf79" title="Verify if a element of the universe is in the set.">isInSet</a>(T i) = 0;</div>
<div class="line"><a name="l00287"></a><span class="lineno">  287</span>&#160;</div>
<div class="line"><a name="l00299"></a><span class="lineno">  299</span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classDirectlyAddressedSet.html#a90c8f0fb7df05d88c9a896e56b14ef0c" title="Verify if a element of the universe is in the complement.">isInCompl</a>(T i) = 0;</div>
<div class="line"><a name="l00300"></a><span class="lineno">  300</span>&#160;</div>
<div class="line"><a name="l00318"></a><span class="lineno">  318</span>&#160;        <span class="keyword">virtual</span> T* <a class="code" href="classDirectlyAddressedSet.html#ad42fac6bc44b9f8742af3e8a771f30f7" title="Create a vector of the elements in the set.">toArray</a>(<span class="keywordtype">long</span>* <a class="code" href="classDirectlyAddressedSet.html#a078e95f3c6f02c31159c8759ec9306b4" title="The size of the universe.">size</a>) = 0;</div>
<div class="line"><a name="l00319"></a><span class="lineno">  319</span>&#160;</div>
<div class="line"><a name="l00327"></a><span class="lineno">  327</span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">long</span> <a class="code" href="classDirectlyAddressedSet.html#a078e95f3c6f02c31159c8759ec9306b4" title="The size of the universe.">size</a>();</div>
<div class="line"><a name="l00328"></a><span class="lineno">  328</span>&#160;</div>
<div class="line"><a name="l00340"></a><span class="lineno">  340</span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classDirectlyAddressedSet.html#a70b4654e9039802db8adad18bb22b902" title="Verify if the set is empty.">isEmpty</a>() = 0;</div>
<div class="line"><a name="l00341"></a><span class="lineno">  341</span>&#160;</div>
<div class="line"><a name="l00347"></a><span class="lineno">  347</span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classDirectlyAddressedSet.html#a0c2c7c7ab888757c989a21c08d15f53a" title="Add all the elements in the universe to the set.">allToSet</a>() = 0;</div>
<div class="line"><a name="l00348"></a><span class="lineno">  348</span>&#160;</div>
<div class="line"><a name="l00354"></a><span class="lineno">  354</span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classDirectlyAddressedSet.html#ac01d17b0e9c5a645002a402c5bf0cd95" title="Add all the elements in the universe to the complement.">allToCompl</a>() = 0;</div>
<div class="line"><a name="l00355"></a><span class="lineno">  355</span>&#160;</div>
<div class="line"><a name="l00365"></a><span class="lineno">  365</span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classDirectlyAddressedSet.html#ab1ab8aa3eb030d1607c3c0504f9b8877" title="The complement of the current set.">setComplement</a>() = 0;</div>
<div class="line"><a name="l00366"></a><span class="lineno">  366</span>&#160;</div>
<div class="line"><a name="l00375"></a><span class="lineno">  375</span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classDirectlyAddressedSet.html#ab1ab8aa3eb030d1607c3c0504f9b8877" title="The complement of the current set.">setComplement</a>(<a class="code" href="classDirectlyAddressedSet.html" title="A dynamic set of elements with direct addressing.">DirectlyAddressedSet&lt;T&gt;</a> * res) = 0;</div>
<div class="line"><a name="l00376"></a><span class="lineno">  376</span>&#160;</div>
<div class="line"><a name="l00388"></a><span class="lineno">  388</span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classDirectlyAddressedSet.html#a9aba2689af58312dafb1316bde7d5f08" title="Union between the current set and the set represented by the object v.">setUnionSet</a>(<a class="code" href="classDirectlyAddressedSet.html" title="A dynamic set of elements with direct addressing.">DirectlyAddressedSet&lt;T&gt;</a> * v);</div>
<div class="line"><a name="l00389"></a><span class="lineno">  389</span>&#160;</div>
<div class="line"><a name="l00401"></a><span class="lineno">  401</span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classDirectlyAddressedSet.html#afaf60637f62d8be45546c1af6b2a32d9" title="Simetric Difference between the current set and the set represented by the object v...">setDiffSimetricSet</a>(<a class="code" href="classDirectlyAddressedSet.html" title="A dynamic set of elements with direct addressing.">DirectlyAddressedSet&lt;T&gt;</a> * v);</div>
<div class="line"><a name="l00402"></a><span class="lineno">  402</span>&#160;</div>
<div class="line"><a name="l00414"></a><span class="lineno">  414</span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classDirectlyAddressedSet.html#ae48c1edff128e93351a69069a6439d42" title="Intersection between the current set and the set represented by the object v.">setIntersecSet</a>(<a class="code" href="classDirectlyAddressedSet.html" title="A dynamic set of elements with direct addressing.">DirectlyAddressedSet&lt;T&gt;</a> * v);</div>
<div class="line"><a name="l00415"></a><span class="lineno">  415</span>&#160;</div>
<div class="line"><a name="l00427"></a><span class="lineno">  427</span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classDirectlyAddressedSet.html#ad1e8d4cf36b3e33254b4e4e3f2072567" title="Difference between the current set and the set represented by the object v.">setDiffSet</a>(<a class="code" href="classDirectlyAddressedSet.html" title="A dynamic set of elements with direct addressing.">DirectlyAddressedSet&lt;T&gt;</a> * v);</div>
<div class="line"><a name="l00428"></a><span class="lineno">  428</span>&#160;</div>
<div class="line"><a name="l00441"></a><span class="lineno">  441</span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classDirectlyAddressedSet.html#a9aba2689af58312dafb1316bde7d5f08" title="Union between the current set and the set represented by the object v.">setUnionSet</a>(<a class="code" href="classDirectlyAddressedSet.html" title="A dynamic set of elements with direct addressing.">DirectlyAddressedSet&lt;T&gt;</a> * v, <a class="code" href="classDirectlyAddressedSet.html" title="A dynamic set of elements with direct addressing.">DirectlyAddressedSet&lt;T&gt;</a> * res);</div>
<div class="line"><a name="l00442"></a><span class="lineno">  442</span>&#160;</div>
<div class="line"><a name="l00455"></a><span class="lineno">  455</span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classDirectlyAddressedSet.html#afaf60637f62d8be45546c1af6b2a32d9" title="Simetric Difference between the current set and the set represented by the object v...">setDiffSimetricSet</a>(<a class="code" href="classDirectlyAddressedSet.html" title="A dynamic set of elements with direct addressing.">DirectlyAddressedSet&lt;T&gt;</a> * v, <a class="code" href="classDirectlyAddressedSet.html" title="A dynamic set of elements with direct addressing.">DirectlyAddressedSet&lt;T&gt;</a> * res);</div>
<div class="line"><a name="l00456"></a><span class="lineno">  456</span>&#160;</div>
<div class="line"><a name="l00469"></a><span class="lineno">  469</span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classDirectlyAddressedSet.html#ae48c1edff128e93351a69069a6439d42" title="Intersection between the current set and the set represented by the object v.">setIntersecSet</a>(<a class="code" href="classDirectlyAddressedSet.html" title="A dynamic set of elements with direct addressing.">DirectlyAddressedSet&lt;T&gt;</a> * v, <a class="code" href="classDirectlyAddressedSet.html" title="A dynamic set of elements with direct addressing.">DirectlyAddressedSet&lt;T&gt;</a> * res);</div>
<div class="line"><a name="l00470"></a><span class="lineno">  470</span>&#160;</div>
<div class="line"><a name="l00483"></a><span class="lineno">  483</span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classDirectlyAddressedSet.html#ad1e8d4cf36b3e33254b4e4e3f2072567" title="Difference between the current set and the set represented by the object v.">setDiffSet</a>(<a class="code" href="classDirectlyAddressedSet.html" title="A dynamic set of elements with direct addressing.">DirectlyAddressedSet&lt;T&gt;</a> * v, <a class="code" href="classDirectlyAddressedSet.html" title="A dynamic set of elements with direct addressing.">DirectlyAddressedSet&lt;T&gt;</a> * res);</div>
<div class="line"><a name="l00484"></a><span class="lineno">  484</span>&#160;</div>
<div class="line"><a name="l00496"></a><span class="lineno">  496</span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classDirectlyAddressedSet.html#a0ca10d0ff52bd7e79568455b80ac4e61" title="Union between the current complement and the set represented by the object v.">complUnionSet</a>(<a class="code" href="classDirectlyAddressedSet.html" title="A dynamic set of elements with direct addressing.">DirectlyAddressedSet&lt;T&gt;</a> * v);</div>
<div class="line"><a name="l00497"></a><span class="lineno">  497</span>&#160;</div>
<div class="line"><a name="l00509"></a><span class="lineno">  509</span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classDirectlyAddressedSet.html#a441335b8e75df694dee34a4c7e8a9129" title="Simetric Difference between the current complement and the set represented by the object v...">complDiffSimetricSet</a>(<a class="code" href="classDirectlyAddressedSet.html" title="A dynamic set of elements with direct addressing.">DirectlyAddressedSet&lt;T&gt;</a> * v);</div>
<div class="line"><a name="l00510"></a><span class="lineno">  510</span>&#160;</div>
<div class="line"><a name="l00522"></a><span class="lineno">  522</span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classDirectlyAddressedSet.html#a493c1b2eb2599d53f769cf58c203f375" title="Intersection between the current complement and the set represented by the object v...">complIntersecSet</a>(<a class="code" href="classDirectlyAddressedSet.html" title="A dynamic set of elements with direct addressing.">DirectlyAddressedSet&lt;T&gt;</a> * v);</div>
<div class="line"><a name="l00523"></a><span class="lineno">  523</span>&#160;</div>
<div class="line"><a name="l00535"></a><span class="lineno">  535</span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classDirectlyAddressedSet.html#a8a228426f531e902c052e1c5812a49bd" title="Difference between the current complement and the set represented by the object v.">complDiffSet</a>(<a class="code" href="classDirectlyAddressedSet.html" title="A dynamic set of elements with direct addressing.">DirectlyAddressedSet&lt;T&gt;</a> * v);</div>
<div class="line"><a name="l00536"></a><span class="lineno">  536</span>&#160;</div>
<div class="line"><a name="l00549"></a><span class="lineno">  549</span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classDirectlyAddressedSet.html#a0ca10d0ff52bd7e79568455b80ac4e61" title="Union between the current complement and the set represented by the object v.">complUnionSet</a>(<a class="code" href="classDirectlyAddressedSet.html" title="A dynamic set of elements with direct addressing.">DirectlyAddressedSet&lt;T&gt;</a> * v, <a class="code" href="classDirectlyAddressedSet.html" title="A dynamic set of elements with direct addressing.">DirectlyAddressedSet&lt;T&gt;</a> * res);</div>
<div class="line"><a name="l00550"></a><span class="lineno">  550</span>&#160;</div>
<div class="line"><a name="l00563"></a><span class="lineno">  563</span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classDirectlyAddressedSet.html#a441335b8e75df694dee34a4c7e8a9129" title="Simetric Difference between the current complement and the set represented by the object v...">complDiffSimetricSet</a>(<a class="code" href="classDirectlyAddressedSet.html" title="A dynamic set of elements with direct addressing.">DirectlyAddressedSet&lt;T&gt;</a> * v, <a class="code" href="classDirectlyAddressedSet.html" title="A dynamic set of elements with direct addressing.">DirectlyAddressedSet&lt;T&gt;</a> * res);</div>
<div class="line"><a name="l00564"></a><span class="lineno">  564</span>&#160;</div>
<div class="line"><a name="l00577"></a><span class="lineno">  577</span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classDirectlyAddressedSet.html#a493c1b2eb2599d53f769cf58c203f375" title="Intersection between the current complement and the set represented by the object v...">complIntersecSet</a>(<a class="code" href="classDirectlyAddressedSet.html" title="A dynamic set of elements with direct addressing.">DirectlyAddressedSet&lt;T&gt;</a> * v, <a class="code" href="classDirectlyAddressedSet.html" title="A dynamic set of elements with direct addressing.">DirectlyAddressedSet&lt;T&gt;</a> * res);</div>
<div class="line"><a name="l00578"></a><span class="lineno">  578</span>&#160;</div>
<div class="line"><a name="l00591"></a><span class="lineno">  591</span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classDirectlyAddressedSet.html#a8a228426f531e902c052e1c5812a49bd" title="Difference between the current complement and the set represented by the object v.">complDiffSet</a>(<a class="code" href="classDirectlyAddressedSet.html" title="A dynamic set of elements with direct addressing.">DirectlyAddressedSet&lt;T&gt;</a> * v, <a class="code" href="classDirectlyAddressedSet.html" title="A dynamic set of elements with direct addressing.">DirectlyAddressedSet&lt;T&gt;</a> * res);</div>
<div class="line"><a name="l00592"></a><span class="lineno">  592</span>&#160;</div>
<div class="line"><a name="l00604"></a><span class="lineno">  604</span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classDirectlyAddressedSet.html#ad817798347b6fbca987f557b1f1f147e" title="Union between the current set and the complement of the set represented by the object v...">setUnionCompl</a>(<a class="code" href="classDirectlyAddressedSet.html" title="A dynamic set of elements with direct addressing.">DirectlyAddressedSet&lt;T&gt;</a> * v);</div>
<div class="line"><a name="l00605"></a><span class="lineno">  605</span>&#160;</div>
<div class="line"><a name="l00617"></a><span class="lineno">  617</span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classDirectlyAddressedSet.html#a69a64828d92e73b978e4f9f6af6e406d" title="Simetric Difference between the current set and the complement of the set represented by the object v...">setDiffSimetricCompl</a>(<a class="code" href="classDirectlyAddressedSet.html" title="A dynamic set of elements with direct addressing.">DirectlyAddressedSet&lt;T&gt;</a> * v);</div>
<div class="line"><a name="l00618"></a><span class="lineno">  618</span>&#160;</div>
<div class="line"><a name="l00630"></a><span class="lineno">  630</span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classDirectlyAddressedSet.html#a7eeddf95108798d0b2a15c2b78593d01" title="Intersection between the current set and the complement of the set represented by the object v...">setIntersecCompl</a>(<a class="code" href="classDirectlyAddressedSet.html" title="A dynamic set of elements with direct addressing.">DirectlyAddressedSet&lt;T&gt;</a> * v);</div>
<div class="line"><a name="l00631"></a><span class="lineno">  631</span>&#160;</div>
<div class="line"><a name="l00643"></a><span class="lineno">  643</span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classDirectlyAddressedSet.html#ac31e4e5fd412fc018bd5573bdcf47d99" title="Difference between the current set and the set represented by the object v.">setDiffCompl</a>(<a class="code" href="classDirectlyAddressedSet.html" title="A dynamic set of elements with direct addressing.">DirectlyAddressedSet&lt;T&gt;</a> * v);</div>
<div class="line"><a name="l00644"></a><span class="lineno">  644</span>&#160;</div>
<div class="line"><a name="l00657"></a><span class="lineno">  657</span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classDirectlyAddressedSet.html#ad817798347b6fbca987f557b1f1f147e" title="Union between the current set and the complement of the set represented by the object v...">setUnionCompl</a>(<a class="code" href="classDirectlyAddressedSet.html" title="A dynamic set of elements with direct addressing.">DirectlyAddressedSet&lt;T&gt;</a> * v, <a class="code" href="classDirectlyAddressedSet.html" title="A dynamic set of elements with direct addressing.">DirectlyAddressedSet&lt;T&gt;</a> * res);</div>
<div class="line"><a name="l00658"></a><span class="lineno">  658</span>&#160;</div>
<div class="line"><a name="l00671"></a><span class="lineno">  671</span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classDirectlyAddressedSet.html#a69a64828d92e73b978e4f9f6af6e406d" title="Simetric Difference between the current set and the complement of the set represented by the object v...">setDiffSimetricCompl</a>(<a class="code" href="classDirectlyAddressedSet.html" title="A dynamic set of elements with direct addressing.">DirectlyAddressedSet&lt;T&gt;</a> * v, <a class="code" href="classDirectlyAddressedSet.html" title="A dynamic set of elements with direct addressing.">DirectlyAddressedSet&lt;T&gt;</a> * res);</div>
<div class="line"><a name="l00672"></a><span class="lineno">  672</span>&#160;</div>
<div class="line"><a name="l00685"></a><span class="lineno">  685</span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classDirectlyAddressedSet.html#a7eeddf95108798d0b2a15c2b78593d01" title="Intersection between the current set and the complement of the set represented by the object v...">setIntersecCompl</a>(<a class="code" href="classDirectlyAddressedSet.html" title="A dynamic set of elements with direct addressing.">DirectlyAddressedSet&lt;T&gt;</a> * v, <a class="code" href="classDirectlyAddressedSet.html" title="A dynamic set of elements with direct addressing.">DirectlyAddressedSet&lt;T&gt;</a> * res);</div>
<div class="line"><a name="l00686"></a><span class="lineno">  686</span>&#160;</div>
<div class="line"><a name="l00699"></a><span class="lineno">  699</span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classDirectlyAddressedSet.html#ac31e4e5fd412fc018bd5573bdcf47d99" title="Difference between the current set and the set represented by the object v.">setDiffCompl</a>(<a class="code" href="classDirectlyAddressedSet.html" title="A dynamic set of elements with direct addressing.">DirectlyAddressedSet&lt;T&gt;</a> * v, <a class="code" href="classDirectlyAddressedSet.html" title="A dynamic set of elements with direct addressing.">DirectlyAddressedSet&lt;T&gt;</a> * res);</div>
<div class="line"><a name="l00700"></a><span class="lineno">  700</span>&#160;</div>
<div class="line"><a name="l00712"></a><span class="lineno">  712</span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classDirectlyAddressedSet.html#aa2fdce300c7736664f2f88f4466ebc89" title="Union between the current complement and the compplement of the set represented by the object v...">complUnionCompl</a>(<a class="code" href="classDirectlyAddressedSet.html" title="A dynamic set of elements with direct addressing.">DirectlyAddressedSet&lt;T&gt;</a> * v);</div>
<div class="line"><a name="l00713"></a><span class="lineno">  713</span>&#160;</div>
<div class="line"><a name="l00725"></a><span class="lineno">  725</span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classDirectlyAddressedSet.html#af7c93c586179b10b477db2052f18d0e9" title="Simetric Difference between the current complement and the complement of the set represented by the o...">complDiffSimetricCompl</a>(<a class="code" href="classDirectlyAddressedSet.html" title="A dynamic set of elements with direct addressing.">DirectlyAddressedSet&lt;T&gt;</a> * v);</div>
<div class="line"><a name="l00726"></a><span class="lineno">  726</span>&#160;</div>
<div class="line"><a name="l00738"></a><span class="lineno">  738</span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classDirectlyAddressedSet.html#acbdd7ba533e20fcbcfc3267bdc1b7e51" title="Intersection between the current complement and the complement of the set represented by the object v...">complIntersecCompl</a>(<a class="code" href="classDirectlyAddressedSet.html" title="A dynamic set of elements with direct addressing.">DirectlyAddressedSet&lt;T&gt;</a> * v);</div>
<div class="line"><a name="l00739"></a><span class="lineno">  739</span>&#160;</div>
<div class="line"><a name="l00751"></a><span class="lineno">  751</span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classDirectlyAddressedSet.html#acf5884fb243f2a54196fa8bf2762da57" title="Difference between the current set and the set represented by the object v.">complDiffCompl</a>(<a class="code" href="classDirectlyAddressedSet.html" title="A dynamic set of elements with direct addressing.">DirectlyAddressedSet&lt;T&gt;</a> * v);</div>
<div class="line"><a name="l00752"></a><span class="lineno">  752</span>&#160;</div>
<div class="line"><a name="l00765"></a><span class="lineno">  765</span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classDirectlyAddressedSet.html#aa2fdce300c7736664f2f88f4466ebc89" title="Union between the current complement and the compplement of the set represented by the object v...">complUnionCompl</a>(<a class="code" href="classDirectlyAddressedSet.html" title="A dynamic set of elements with direct addressing.">DirectlyAddressedSet&lt;T&gt;</a> * v, <a class="code" href="classDirectlyAddressedSet.html" title="A dynamic set of elements with direct addressing.">DirectlyAddressedSet&lt;T&gt;</a> * res);</div>
<div class="line"><a name="l00766"></a><span class="lineno">  766</span>&#160;</div>
<div class="line"><a name="l00779"></a><span class="lineno">  779</span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classDirectlyAddressedSet.html#af7c93c586179b10b477db2052f18d0e9" title="Simetric Difference between the current complement and the complement of the set represented by the o...">complDiffSimetricCompl</a>(<a class="code" href="classDirectlyAddressedSet.html" title="A dynamic set of elements with direct addressing.">DirectlyAddressedSet&lt;T&gt;</a> * v, <a class="code" href="classDirectlyAddressedSet.html" title="A dynamic set of elements with direct addressing.">DirectlyAddressedSet&lt;T&gt;</a> * res);</div>
<div class="line"><a name="l00780"></a><span class="lineno">  780</span>&#160;</div>
<div class="line"><a name="l00793"></a><span class="lineno">  793</span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classDirectlyAddressedSet.html#acbdd7ba533e20fcbcfc3267bdc1b7e51" title="Intersection between the current complement and the complement of the set represented by the object v...">complIntersecCompl</a>(<a class="code" href="classDirectlyAddressedSet.html" title="A dynamic set of elements with direct addressing.">DirectlyAddressedSet&lt;T&gt;</a> * v, <a class="code" href="classDirectlyAddressedSet.html" title="A dynamic set of elements with direct addressing.">DirectlyAddressedSet&lt;T&gt;</a> * res);</div>
<div class="line"><a name="l00794"></a><span class="lineno">  794</span>&#160;</div>
<div class="line"><a name="l00807"></a><span class="lineno">  807</span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classDirectlyAddressedSet.html#acf5884fb243f2a54196fa8bf2762da57" title="Difference between the current set and the set represented by the object v.">complDiffCompl</a>(<a class="code" href="classDirectlyAddressedSet.html" title="A dynamic set of elements with direct addressing.">DirectlyAddressedSet&lt;T&gt;</a> * v, <a class="code" href="classDirectlyAddressedSet.html" title="A dynamic set of elements with direct addressing.">DirectlyAddressedSet&lt;T&gt;</a> * res);</div>
<div class="line"><a name="l00808"></a><span class="lineno">  808</span>&#160;</div>
<div class="line"><a name="l00819"></a><span class="lineno">  819</span>&#160;        <span class="keyword">virtual</span> T <a class="code" href="classDirectlyAddressedSet.html#a42db513d5f225d9741a6210dca38c541" title="Determine the first element of the set represented by the current object.">firstInSet</a>() = 0;</div>
<div class="line"><a name="l00820"></a><span class="lineno">  820</span>&#160;</div>
<div class="line"><a name="l00831"></a><span class="lineno">  831</span>&#160;        <span class="keyword">virtual</span> T <a class="code" href="classDirectlyAddressedSet.html#a086b84a26b064ade3b3571fa3707d8ed" title="Determine the first element of the complement of the set represented by the current object...">firstInCompl</a>() = 0;</div>
<div class="line"><a name="l00832"></a><span class="lineno">  832</span>&#160;</div>
<div class="line"><a name="l00841"></a><span class="lineno">  841</span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">long</span> <a class="code" href="classDirectlyAddressedSet.html#a709b0ab9591a13f98804316ecbe7d1eb" title="The cardinality of the set represented by the object.">cardOfSet</a>();</div>
<div class="line"><a name="l00842"></a><span class="lineno">  842</span>&#160;</div>
<div class="line"><a name="l00851"></a><span class="lineno">  851</span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">long</span> <a class="code" href="classDirectlyAddressedSet.html#a91bbca22665b94075c7034c3ae805d25" title="The cardinality of the complement of the set represented by the object.">cardOfCompl</a>();</div>
<div class="line"><a name="l00852"></a><span class="lineno">  852</span>&#160;</div>
<div class="line"><a name="l00853"></a><span class="lineno">  853</span>&#160;};</div>
<div class="line"><a name="l00854"></a><span class="lineno">  854</span>&#160;</div>
<div class="line"><a name="l00855"></a><span class="lineno">  855</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> T&gt;</div>
<div class="line"><a name="l00856"></a><span class="lineno"><a class="code" href="classDirectlyAddressedSet.html#a991cec5739a4c2db59332a454d46c14a">  856</a></span>&#160;<span class="keyword">inline</span> <a class="code" href="classDirectlyAddressedSet.html#a991cec5739a4c2db59332a454d46c14a" title="Destructor.">DirectlyAddressedSet&lt;T&gt;::~DirectlyAddressedSet</a>(){}</div>
<div class="line"><a name="l00857"></a><span class="lineno">  857</span>&#160;</div>
<div class="line"><a name="l00858"></a><span class="lineno">  858</span>&#160;</div>
<div class="line"><a name="l00859"></a><span class="lineno">  859</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> T&gt;</div>
<div class="line"><a name="l00860"></a><span class="lineno"><a class="code" href="classDirectlyAddressedSet.html#ae3f708aa95649ecae727f2acc5999c38">  860</a></span>&#160;<span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classDirectlyAddressedSet.html#ae3f708aa95649ecae727f2acc5999c38" title="Swap a element between the set and the complement.">DirectlyAddressedSet&lt;T&gt;::swapElement</a>(T i){</div>
<div class="line"><a name="l00861"></a><span class="lineno">  861</span>&#160;        <span class="keywordflow">if</span>(isInSet(i))toCompl(i);</div>
<div class="line"><a name="l00862"></a><span class="lineno">  862</span>&#160;        <span class="keywordflow">else</span> toSet(i);</div>
<div class="line"><a name="l00863"></a><span class="lineno">  863</span>&#160;}</div>
<div class="line"><a name="l00864"></a><span class="lineno">  864</span>&#160;</div>
<div class="line"><a name="l00865"></a><span class="lineno">  865</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> T&gt;</div>
<div class="line"><a name="l00866"></a><span class="lineno"><a class="code" href="classDirectlyAddressedSet.html#a078e95f3c6f02c31159c8759ec9306b4">  866</a></span>&#160;<span class="keyword">inline</span> <span class="keywordtype">long</span> <a class="code" href="classDirectlyAddressedSet.html#a078e95f3c6f02c31159c8759ec9306b4" title="The size of the universe.">DirectlyAddressedSet&lt;T&gt;::size</a>(){</div>
<div class="line"><a name="l00867"></a><span class="lineno">  867</span>&#160;        <span class="keywordflow">return</span> n;</div>
<div class="line"><a name="l00868"></a><span class="lineno">  868</span>&#160;}</div>
<div class="line"><a name="l00869"></a><span class="lineno">  869</span>&#160;</div>
<div class="line"><a name="l00870"></a><span class="lineno">  870</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> T&gt;</div>
<div class="line"><a name="l00871"></a><span class="lineno"><a class="code" href="classDirectlyAddressedSet.html#a9aba2689af58312dafb1316bde7d5f08">  871</a></span>&#160;<span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classDirectlyAddressedSet.html#a9aba2689af58312dafb1316bde7d5f08" title="Union between the current set and the set represented by the object v.">DirectlyAddressedSet&lt;T&gt;::setUnionSet</a>(<a class="code" href="classDirectlyAddressedSet.html" title="A dynamic set of elements with direct addressing.">DirectlyAddressedSet&lt;T&gt;</a> * v){</div>
<div class="line"><a name="l00872"></a><span class="lineno">  872</span>&#160;        <a class="code" href="classDirectlyAddressedSet_1_1Iterator.html">Iterator</a>* it = v-&gt;<a class="code" href="classDirectlyAddressedSet.html#aa0a1268c76c9243443d148c1eedb543c" title="A Iterator for the set represented by the object.">newSetIterator</a>();</div>
<div class="line"><a name="l00873"></a><span class="lineno">  873</span>&#160;        <span class="keywordflow">while</span>(it-&gt;<a class="code" href="classDirectlyAddressedSet_1_1Iterator.html#ad70bbb3ac269e9fa2601d5b4c20e3f4b" title="Verify if the set has same element not enumerated yet.">hasNext</a>())</div>
<div class="line"><a name="l00874"></a><span class="lineno">  874</span>&#160;                toSet(it-&gt;<a class="code" href="classDirectlyAddressedSet_1_1Iterator.html#ad6c581f7e5ec3a49f14d14fbc6ec1af2" title="Enumerate the elements in the set.">next</a>());</div>
<div class="line"><a name="l00875"></a><span class="lineno">  875</span>&#160;}</div>
<div class="line"><a name="l00876"></a><span class="lineno">  876</span>&#160;</div>
<div class="line"><a name="l00877"></a><span class="lineno">  877</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> T&gt;</div>
<div class="line"><a name="l00878"></a><span class="lineno"><a class="code" href="classDirectlyAddressedSet.html#afaf60637f62d8be45546c1af6b2a32d9">  878</a></span>&#160;<span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classDirectlyAddressedSet.html#afaf60637f62d8be45546c1af6b2a32d9" title="Simetric Difference between the current set and the set represented by the object v...">DirectlyAddressedSet&lt;T&gt;::setDiffSimetricSet</a>(<a class="code" href="classDirectlyAddressedSet.html" title="A dynamic set of elements with direct addressing.">DirectlyAddressedSet&lt;T&gt;</a> * v){</div>
<div class="line"><a name="l00879"></a><span class="lineno">  879</span>&#160;        <a class="code" href="classDirectlyAddressedSet_1_1Iterator.html">Iterator</a>* it = v-&gt;<a class="code" href="classDirectlyAddressedSet.html#aa0a1268c76c9243443d148c1eedb543c" title="A Iterator for the set represented by the object.">newSetIterator</a>();</div>
<div class="line"><a name="l00880"></a><span class="lineno">  880</span>&#160;        <span class="keywordflow">while</span>(it-&gt;<a class="code" href="classDirectlyAddressedSet_1_1Iterator.html#ad70bbb3ac269e9fa2601d5b4c20e3f4b" title="Verify if the set has same element not enumerated yet.">hasNext</a>())</div>
<div class="line"><a name="l00881"></a><span class="lineno">  881</span>&#160;                swapElement(it-&gt;<a class="code" href="classDirectlyAddressedSet_1_1Iterator.html#ad6c581f7e5ec3a49f14d14fbc6ec1af2" title="Enumerate the elements in the set.">next</a>());</div>
<div class="line"><a name="l00882"></a><span class="lineno">  882</span>&#160;}</div>
<div class="line"><a name="l00883"></a><span class="lineno">  883</span>&#160;</div>
<div class="line"><a name="l00884"></a><span class="lineno">  884</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> T&gt;</div>
<div class="line"><a name="l00885"></a><span class="lineno"><a class="code" href="classDirectlyAddressedSet.html#ae48c1edff128e93351a69069a6439d42">  885</a></span>&#160;<span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classDirectlyAddressedSet.html#ae48c1edff128e93351a69069a6439d42" title="Intersection between the current set and the set represented by the object v.">DirectlyAddressedSet&lt;T&gt;::setIntersecSet</a>(<a class="code" href="classDirectlyAddressedSet.html" title="A dynamic set of elements with direct addressing.">DirectlyAddressedSet&lt;T&gt;</a> * v){</div>
<div class="line"><a name="l00886"></a><span class="lineno">  886</span>&#160;        <a class="code" href="classDirectlyAddressedSet_1_1Iterator.html">Iterator</a>* it = newSetIterator();</div>
<div class="line"><a name="l00887"></a><span class="lineno">  887</span>&#160;        T elem;</div>
<div class="line"><a name="l00888"></a><span class="lineno">  888</span>&#160;        <span class="keywordflow">while</span>(it-&gt;<a class="code" href="classDirectlyAddressedSet_1_1Iterator.html#ad70bbb3ac269e9fa2601d5b4c20e3f4b" title="Verify if the set has same element not enumerated yet.">hasNext</a>()){</div>
<div class="line"><a name="l00889"></a><span class="lineno">  889</span>&#160;                elem = it-&gt;<a class="code" href="classDirectlyAddressedSet_1_1Iterator.html#ad6c581f7e5ec3a49f14d14fbc6ec1af2" title="Enumerate the elements in the set.">next</a>();</div>
<div class="line"><a name="l00890"></a><span class="lineno">  890</span>&#160;                <span class="keywordflow">if</span>(v-&gt;<a class="code" href="classDirectlyAddressedSet.html#a90c8f0fb7df05d88c9a896e56b14ef0c" title="Verify if a element of the universe is in the complement.">isInCompl</a>(elem)) toCompl(elem);</div>
<div class="line"><a name="l00891"></a><span class="lineno">  891</span>&#160;        }</div>
<div class="line"><a name="l00892"></a><span class="lineno">  892</span>&#160;}</div>
<div class="line"><a name="l00893"></a><span class="lineno">  893</span>&#160;</div>
<div class="line"><a name="l00894"></a><span class="lineno">  894</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> T&gt;</div>
<div class="line"><a name="l00895"></a><span class="lineno"><a class="code" href="classDirectlyAddressedSet.html#ad1e8d4cf36b3e33254b4e4e3f2072567">  895</a></span>&#160;<span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classDirectlyAddressedSet.html#ad1e8d4cf36b3e33254b4e4e3f2072567" title="Difference between the current set and the set represented by the object v.">DirectlyAddressedSet&lt;T&gt;::setDiffSet</a>(<a class="code" href="classDirectlyAddressedSet.html" title="A dynamic set of elements with direct addressing.">DirectlyAddressedSet&lt;T&gt;</a> * v){</div>
<div class="line"><a name="l00896"></a><span class="lineno">  896</span>&#160;        <a class="code" href="classDirectlyAddressedSet_1_1Iterator.html">Iterator</a>* it = v-&gt;<a class="code" href="classDirectlyAddressedSet.html#aa0a1268c76c9243443d148c1eedb543c" title="A Iterator for the set represented by the object.">newSetIterator</a>();</div>
<div class="line"><a name="l00897"></a><span class="lineno">  897</span>&#160;        <span class="keywordflow">while</span>(it-&gt;<a class="code" href="classDirectlyAddressedSet_1_1Iterator.html#ad70bbb3ac269e9fa2601d5b4c20e3f4b" title="Verify if the set has same element not enumerated yet.">hasNext</a>())</div>
<div class="line"><a name="l00898"></a><span class="lineno">  898</span>&#160;                toCompl(it-&gt;<a class="code" href="classDirectlyAddressedSet_1_1Iterator.html#ad6c581f7e5ec3a49f14d14fbc6ec1af2" title="Enumerate the elements in the set.">next</a>());</div>
<div class="line"><a name="l00899"></a><span class="lineno">  899</span>&#160;}</div>
<div class="line"><a name="l00900"></a><span class="lineno">  900</span>&#160;</div>
<div class="line"><a name="l00901"></a><span class="lineno">  901</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> T&gt;</div>
<div class="line"><a name="l00902"></a><span class="lineno"><a class="code" href="classDirectlyAddressedSet.html#a27b92e27bddf63745bbf63d0517b7708">  902</a></span>&#160;<span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classDirectlyAddressedSet.html#a9aba2689af58312dafb1316bde7d5f08" title="Union between the current set and the set represented by the object v.">DirectlyAddressedSet&lt;T&gt;::setUnionSet</a>(<a class="code" href="classDirectlyAddressedSet.html" title="A dynamic set of elements with direct addressing.">DirectlyAddressedSet&lt;T&gt;</a> * v, <a class="code" href="classDirectlyAddressedSet.html" title="A dynamic set of elements with direct addressing.">DirectlyAddressedSet&lt;T&gt;</a> * res){</div>
<div class="line"><a name="l00903"></a><span class="lineno">  903</span>&#160;        <a class="code" href="classDirectlyAddressedSet_1_1Iterator.html">Iterator</a>* it = newSetIterator();</div>
<div class="line"><a name="l00904"></a><span class="lineno">  904</span>&#160;        <span class="keywordflow">while</span>(it-&gt;<a class="code" href="classDirectlyAddressedSet_1_1Iterator.html#ad70bbb3ac269e9fa2601d5b4c20e3f4b" title="Verify if the set has same element not enumerated yet.">hasNext</a>())</div>
<div class="line"><a name="l00905"></a><span class="lineno">  905</span>&#160;                res-&gt;<a class="code" href="classDirectlyAddressedSet.html#a7c87b183797e4273764d37877cc197ef" title="Add the specified element to the set.">toSet</a>(it-&gt;<a class="code" href="classDirectlyAddressedSet_1_1Iterator.html#ad6c581f7e5ec3a49f14d14fbc6ec1af2" title="Enumerate the elements in the set.">next</a>());</div>
<div class="line"><a name="l00906"></a><span class="lineno">  906</span>&#160;</div>
<div class="line"><a name="l00907"></a><span class="lineno">  907</span>&#160;        res-&gt;<a class="code" href="classDirectlyAddressedSet.html#a9aba2689af58312dafb1316bde7d5f08" title="Union between the current set and the set represented by the object v.">setUnionSet</a>(v);</div>
<div class="line"><a name="l00908"></a><span class="lineno">  908</span>&#160;}</div>
<div class="line"><a name="l00909"></a><span class="lineno">  909</span>&#160;</div>
<div class="line"><a name="l00910"></a><span class="lineno">  910</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> T&gt;</div>
<div class="line"><a name="l00911"></a><span class="lineno"><a class="code" href="classDirectlyAddressedSet.html#aa6a9f5f5228d3397ca7c4a8641d53cf0">  911</a></span>&#160;<span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classDirectlyAddressedSet.html#afaf60637f62d8be45546c1af6b2a32d9" title="Simetric Difference between the current set and the set represented by the object v...">DirectlyAddressedSet&lt;T&gt;::setDiffSimetricSet</a>(<a class="code" href="classDirectlyAddressedSet.html" title="A dynamic set of elements with direct addressing.">DirectlyAddressedSet&lt;T&gt;</a> * v, <a class="code" href="classDirectlyAddressedSet.html" title="A dynamic set of elements with direct addressing.">DirectlyAddressedSet&lt;T&gt;</a> * res){</div>
<div class="line"><a name="l00912"></a><span class="lineno">  912</span>&#160;        <a class="code" href="classDirectlyAddressedSet_1_1Iterator.html">Iterator</a>* it = newSetIterator();</div>
<div class="line"><a name="l00913"></a><span class="lineno">  913</span>&#160;        <span class="keywordflow">while</span>(it-&gt;<a class="code" href="classDirectlyAddressedSet_1_1Iterator.html#ad70bbb3ac269e9fa2601d5b4c20e3f4b" title="Verify if the set has same element not enumerated yet.">hasNext</a>())</div>
<div class="line"><a name="l00914"></a><span class="lineno">  914</span>&#160;                res-&gt;<a class="code" href="classDirectlyAddressedSet.html#a7c87b183797e4273764d37877cc197ef" title="Add the specified element to the set.">toSet</a>(it-&gt;<a class="code" href="classDirectlyAddressedSet_1_1Iterator.html#ad6c581f7e5ec3a49f14d14fbc6ec1af2" title="Enumerate the elements in the set.">next</a>());</div>
<div class="line"><a name="l00915"></a><span class="lineno">  915</span>&#160;</div>
<div class="line"><a name="l00916"></a><span class="lineno">  916</span>&#160;        res-&gt;<a class="code" href="classDirectlyAddressedSet.html#afaf60637f62d8be45546c1af6b2a32d9" title="Simetric Difference between the current set and the set represented by the object v...">setDiffSimetricSet</a>(v);</div>
<div class="line"><a name="l00917"></a><span class="lineno">  917</span>&#160;}</div>
<div class="line"><a name="l00918"></a><span class="lineno">  918</span>&#160;</div>
<div class="line"><a name="l00919"></a><span class="lineno">  919</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> T&gt;</div>
<div class="line"><a name="l00920"></a><span class="lineno"><a class="code" href="classDirectlyAddressedSet.html#a9758f6a674dba78097dacdbfbdc99cab">  920</a></span>&#160;<span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classDirectlyAddressedSet.html#ae48c1edff128e93351a69069a6439d42" title="Intersection between the current set and the set represented by the object v.">DirectlyAddressedSet&lt;T&gt;::setIntersecSet</a>(<a class="code" href="classDirectlyAddressedSet.html" title="A dynamic set of elements with direct addressing.">DirectlyAddressedSet&lt;T&gt;</a> * v, <a class="code" href="classDirectlyAddressedSet.html" title="A dynamic set of elements with direct addressing.">DirectlyAddressedSet&lt;T&gt;</a> * res){</div>
<div class="line"><a name="l00921"></a><span class="lineno">  921</span>&#160;        <a class="code" href="classDirectlyAddressedSet_1_1Iterator.html">Iterator</a>* it = newSetIterator();</div>
<div class="line"><a name="l00922"></a><span class="lineno">  922</span>&#160;        <span class="keywordflow">while</span>(it-&gt;<a class="code" href="classDirectlyAddressedSet_1_1Iterator.html#ad70bbb3ac269e9fa2601d5b4c20e3f4b" title="Verify if the set has same element not enumerated yet.">hasNext</a>())</div>
<div class="line"><a name="l00923"></a><span class="lineno">  923</span>&#160;                res-&gt;<a class="code" href="classDirectlyAddressedSet.html#a7c87b183797e4273764d37877cc197ef" title="Add the specified element to the set.">toSet</a>(it-&gt;<a class="code" href="classDirectlyAddressedSet_1_1Iterator.html#ad6c581f7e5ec3a49f14d14fbc6ec1af2" title="Enumerate the elements in the set.">next</a>());</div>
<div class="line"><a name="l00924"></a><span class="lineno">  924</span>&#160;</div>
<div class="line"><a name="l00925"></a><span class="lineno">  925</span>&#160;        res-&gt;<a class="code" href="classDirectlyAddressedSet.html#ae48c1edff128e93351a69069a6439d42" title="Intersection between the current set and the set represented by the object v.">setIntersecSet</a>(v);</div>
<div class="line"><a name="l00926"></a><span class="lineno">  926</span>&#160;}</div>
<div class="line"><a name="l00927"></a><span class="lineno">  927</span>&#160;</div>
<div class="line"><a name="l00928"></a><span class="lineno">  928</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> T&gt;</div>
<div class="line"><a name="l00929"></a><span class="lineno"><a class="code" href="classDirectlyAddressedSet.html#a523cb770dc567fb9baf4d415ade62842">  929</a></span>&#160;<span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classDirectlyAddressedSet.html#ad1e8d4cf36b3e33254b4e4e3f2072567" title="Difference between the current set and the set represented by the object v.">DirectlyAddressedSet&lt;T&gt;::setDiffSet</a>(<a class="code" href="classDirectlyAddressedSet.html" title="A dynamic set of elements with direct addressing.">DirectlyAddressedSet&lt;T&gt;</a> * v, <a class="code" href="classDirectlyAddressedSet.html" title="A dynamic set of elements with direct addressing.">DirectlyAddressedSet&lt;T&gt;</a> * res){</div>
<div class="line"><a name="l00930"></a><span class="lineno">  930</span>&#160;        <a class="code" href="classDirectlyAddressedSet_1_1Iterator.html">Iterator</a>* it = newSetIterator();</div>
<div class="line"><a name="l00931"></a><span class="lineno">  931</span>&#160;        <span class="keywordflow">while</span>(it-&gt;<a class="code" href="classDirectlyAddressedSet_1_1Iterator.html#ad70bbb3ac269e9fa2601d5b4c20e3f4b" title="Verify if the set has same element not enumerated yet.">hasNext</a>())</div>
<div class="line"><a name="l00932"></a><span class="lineno">  932</span>&#160;                res-&gt;<a class="code" href="classDirectlyAddressedSet.html#a7c87b183797e4273764d37877cc197ef" title="Add the specified element to the set.">toSet</a>(it-&gt;<a class="code" href="classDirectlyAddressedSet_1_1Iterator.html#ad6c581f7e5ec3a49f14d14fbc6ec1af2" title="Enumerate the elements in the set.">next</a>());</div>
<div class="line"><a name="l00933"></a><span class="lineno">  933</span>&#160;</div>
<div class="line"><a name="l00934"></a><span class="lineno">  934</span>&#160;        res-&gt;<a class="code" href="classDirectlyAddressedSet.html#ad1e8d4cf36b3e33254b4e4e3f2072567" title="Difference between the current set and the set represented by the object v.">setDiffSet</a>(v);</div>
<div class="line"><a name="l00935"></a><span class="lineno">  935</span>&#160;}</div>
<div class="line"><a name="l00936"></a><span class="lineno">  936</span>&#160;</div>
<div class="line"><a name="l00937"></a><span class="lineno">  937</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> T&gt;</div>
<div class="line"><a name="l00938"></a><span class="lineno"><a class="code" href="classDirectlyAddressedSet.html#a0ca10d0ff52bd7e79568455b80ac4e61">  938</a></span>&#160;<span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classDirectlyAddressedSet.html#a0ca10d0ff52bd7e79568455b80ac4e61" title="Union between the current complement and the set represented by the object v.">DirectlyAddressedSet&lt;T&gt;::complUnionSet</a>(<a class="code" href="classDirectlyAddressedSet.html" title="A dynamic set of elements with direct addressing.">DirectlyAddressedSet&lt;T&gt;</a> * v){</div>
<div class="line"><a name="l00939"></a><span class="lineno">  939</span>&#160;        setComplement();</div>
<div class="line"><a name="l00940"></a><span class="lineno">  940</span>&#160;        setUnionSet(v);</div>
<div class="line"><a name="l00941"></a><span class="lineno">  941</span>&#160;}</div>
<div class="line"><a name="l00942"></a><span class="lineno">  942</span>&#160;</div>
<div class="line"><a name="l00943"></a><span class="lineno">  943</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> T&gt;</div>
<div class="line"><a name="l00944"></a><span class="lineno"><a class="code" href="classDirectlyAddressedSet.html#a441335b8e75df694dee34a4c7e8a9129">  944</a></span>&#160;<span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classDirectlyAddressedSet.html#a441335b8e75df694dee34a4c7e8a9129" title="Simetric Difference between the current complement and the set represented by the object v...">DirectlyAddressedSet&lt;T&gt;::complDiffSimetricSet</a>(<a class="code" href="classDirectlyAddressedSet.html" title="A dynamic set of elements with direct addressing.">DirectlyAddressedSet&lt;T&gt;</a> * v){</div>
<div class="line"><a name="l00945"></a><span class="lineno">  945</span>&#160;        setComplement();</div>
<div class="line"><a name="l00946"></a><span class="lineno">  946</span>&#160;        setDiffSimetricSet(v);</div>
<div class="line"><a name="l00947"></a><span class="lineno">  947</span>&#160;}</div>
<div class="line"><a name="l00948"></a><span class="lineno">  948</span>&#160;</div>
<div class="line"><a name="l00949"></a><span class="lineno">  949</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> T&gt;</div>
<div class="line"><a name="l00950"></a><span class="lineno"><a class="code" href="classDirectlyAddressedSet.html#a493c1b2eb2599d53f769cf58c203f375">  950</a></span>&#160;<span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classDirectlyAddressedSet.html#a493c1b2eb2599d53f769cf58c203f375" title="Intersection between the current complement and the set represented by the object v...">DirectlyAddressedSet&lt;T&gt;::complIntersecSet</a>(<a class="code" href="classDirectlyAddressedSet.html" title="A dynamic set of elements with direct addressing.">DirectlyAddressedSet&lt;T&gt;</a> * v){</div>
<div class="line"><a name="l00951"></a><span class="lineno">  951</span>&#160;        setComplement();</div>
<div class="line"><a name="l00952"></a><span class="lineno">  952</span>&#160;        setIntersecSet(v);</div>
<div class="line"><a name="l00953"></a><span class="lineno">  953</span>&#160;}</div>
<div class="line"><a name="l00954"></a><span class="lineno">  954</span>&#160;</div>
<div class="line"><a name="l00955"></a><span class="lineno">  955</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> T&gt;</div>
<div class="line"><a name="l00956"></a><span class="lineno"><a class="code" href="classDirectlyAddressedSet.html#a8a228426f531e902c052e1c5812a49bd">  956</a></span>&#160;<span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classDirectlyAddressedSet.html#a8a228426f531e902c052e1c5812a49bd" title="Difference between the current complement and the set represented by the object v.">DirectlyAddressedSet&lt;T&gt;::complDiffSet</a>(<a class="code" href="classDirectlyAddressedSet.html" title="A dynamic set of elements with direct addressing.">DirectlyAddressedSet&lt;T&gt;</a> * v){</div>
<div class="line"><a name="l00957"></a><span class="lineno">  957</span>&#160;        setComplement();</div>
<div class="line"><a name="l00958"></a><span class="lineno">  958</span>&#160;        setDiffSet(v);</div>
<div class="line"><a name="l00959"></a><span class="lineno">  959</span>&#160;}</div>
<div class="line"><a name="l00960"></a><span class="lineno">  960</span>&#160;</div>
<div class="line"><a name="l00961"></a><span class="lineno">  961</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> T&gt;</div>
<div class="line"><a name="l00962"></a><span class="lineno"><a class="code" href="classDirectlyAddressedSet.html#a3178d250c96f0a735ebe56ad91989e5a">  962</a></span>&#160;<span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classDirectlyAddressedSet.html#a0ca10d0ff52bd7e79568455b80ac4e61" title="Union between the current complement and the set represented by the object v.">DirectlyAddressedSet&lt;T&gt;::complUnionSet</a>(<a class="code" href="classDirectlyAddressedSet.html" title="A dynamic set of elements with direct addressing.">DirectlyAddressedSet&lt;T&gt;</a> * v, <a class="code" href="classDirectlyAddressedSet.html" title="A dynamic set of elements with direct addressing.">DirectlyAddressedSet&lt;T&gt;</a> * res){</div>
<div class="line"><a name="l00963"></a><span class="lineno">  963</span>&#160;        <a class="code" href="classDirectlyAddressedSet_1_1Iterator.html">Iterator</a>* it = newComplIterator();</div>
<div class="line"><a name="l00964"></a><span class="lineno">  964</span>&#160;        <a class="code" href="classDirectlyAddressedSet_1_1Iterator.html">Iterator</a>* itv = v-&gt;<a class="code" href="classDirectlyAddressedSet.html#aa0a1268c76c9243443d148c1eedb543c" title="A Iterator for the set represented by the object.">newSetIterator</a>();</div>
<div class="line"><a name="l00965"></a><span class="lineno">  965</span>&#160;        <span class="keywordflow">while</span>(it-&gt;<a class="code" href="classDirectlyAddressedSet_1_1Iterator.html#ad70bbb3ac269e9fa2601d5b4c20e3f4b" title="Verify if the set has same element not enumerated yet.">hasNext</a>())</div>
<div class="line"><a name="l00966"></a><span class="lineno">  966</span>&#160;                res-&gt;<a class="code" href="classDirectlyAddressedSet.html#a7c87b183797e4273764d37877cc197ef" title="Add the specified element to the set.">toSet</a>(it-&gt;<a class="code" href="classDirectlyAddressedSet_1_1Iterator.html#ad6c581f7e5ec3a49f14d14fbc6ec1af2" title="Enumerate the elements in the set.">next</a>());</div>
<div class="line"><a name="l00967"></a><span class="lineno">  967</span>&#160;</div>
<div class="line"><a name="l00968"></a><span class="lineno">  968</span>&#160;        <span class="keywordflow">while</span>(itv-&gt;<a class="code" href="classDirectlyAddressedSet_1_1Iterator.html#ad70bbb3ac269e9fa2601d5b4c20e3f4b" title="Verify if the set has same element not enumerated yet.">hasNext</a>())</div>
<div class="line"><a name="l00969"></a><span class="lineno">  969</span>&#160;                res-&gt;<a class="code" href="classDirectlyAddressedSet.html#a7c87b183797e4273764d37877cc197ef" title="Add the specified element to the set.">toSet</a>(itv-&gt;<a class="code" href="classDirectlyAddressedSet_1_1Iterator.html#ad6c581f7e5ec3a49f14d14fbc6ec1af2" title="Enumerate the elements in the set.">next</a>());</div>
<div class="line"><a name="l00970"></a><span class="lineno">  970</span>&#160;}</div>
<div class="line"><a name="l00971"></a><span class="lineno">  971</span>&#160;</div>
<div class="line"><a name="l00972"></a><span class="lineno">  972</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> T&gt;</div>
<div class="line"><a name="l00973"></a><span class="lineno"><a class="code" href="classDirectlyAddressedSet.html#a42b555cc3d9cd211c0b6554fc40b2f70">  973</a></span>&#160;<span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classDirectlyAddressedSet.html#a441335b8e75df694dee34a4c7e8a9129" title="Simetric Difference between the current complement and the set represented by the object v...">DirectlyAddressedSet&lt;T&gt;::complDiffSimetricSet</a>(<a class="code" href="classDirectlyAddressedSet.html" title="A dynamic set of elements with direct addressing.">DirectlyAddressedSet&lt;T&gt;</a> * v, <a class="code" href="classDirectlyAddressedSet.html" title="A dynamic set of elements with direct addressing.">DirectlyAddressedSet&lt;T&gt;</a> * res){</div>
<div class="line"><a name="l00974"></a><span class="lineno">  974</span>&#160;        <a class="code" href="classDirectlyAddressedSet_1_1Iterator.html">Iterator</a>* it = newComplIterator();</div>
<div class="line"><a name="l00975"></a><span class="lineno">  975</span>&#160;        <a class="code" href="classDirectlyAddressedSet_1_1Iterator.html">Iterator</a>* itv = v-&gt;<a class="code" href="classDirectlyAddressedSet.html#aa0a1268c76c9243443d148c1eedb543c" title="A Iterator for the set represented by the object.">newSetIterator</a>();</div>
<div class="line"><a name="l00976"></a><span class="lineno">  976</span>&#160;        <span class="keywordflow">while</span>(it-&gt;<a class="code" href="classDirectlyAddressedSet_1_1Iterator.html#ad70bbb3ac269e9fa2601d5b4c20e3f4b" title="Verify if the set has same element not enumerated yet.">hasNext</a>())</div>
<div class="line"><a name="l00977"></a><span class="lineno">  977</span>&#160;                res-&gt;<a class="code" href="classDirectlyAddressedSet.html#a7c87b183797e4273764d37877cc197ef" title="Add the specified element to the set.">toSet</a>(it-&gt;<a class="code" href="classDirectlyAddressedSet_1_1Iterator.html#ad6c581f7e5ec3a49f14d14fbc6ec1af2" title="Enumerate the elements in the set.">next</a>());</div>
<div class="line"><a name="l00978"></a><span class="lineno">  978</span>&#160;</div>
<div class="line"><a name="l00979"></a><span class="lineno">  979</span>&#160;        <span class="keywordflow">while</span>(itv-&gt;<a class="code" href="classDirectlyAddressedSet_1_1Iterator.html#ad70bbb3ac269e9fa2601d5b4c20e3f4b" title="Verify if the set has same element not enumerated yet.">hasNext</a>())</div>
<div class="line"><a name="l00980"></a><span class="lineno">  980</span>&#160;                res-&gt;<a class="code" href="classDirectlyAddressedSet.html#ae3f708aa95649ecae727f2acc5999c38" title="Swap a element between the set and the complement.">swapElement</a>(itv-&gt;<a class="code" href="classDirectlyAddressedSet_1_1Iterator.html#ad6c581f7e5ec3a49f14d14fbc6ec1af2" title="Enumerate the elements in the set.">next</a>());</div>
<div class="line"><a name="l00981"></a><span class="lineno">  981</span>&#160;}</div>
<div class="line"><a name="l00982"></a><span class="lineno">  982</span>&#160;</div>
<div class="line"><a name="l00983"></a><span class="lineno">  983</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> T&gt;</div>
<div class="line"><a name="l00984"></a><span class="lineno"><a class="code" href="classDirectlyAddressedSet.html#a0265bfb279ceb11b9de6bc6bebcecc5b">  984</a></span>&#160;<span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classDirectlyAddressedSet.html#a493c1b2eb2599d53f769cf58c203f375" title="Intersection between the current complement and the set represented by the object v...">DirectlyAddressedSet&lt;T&gt;::complIntersecSet</a>(<a class="code" href="classDirectlyAddressedSet.html" title="A dynamic set of elements with direct addressing.">DirectlyAddressedSet&lt;T&gt;</a> * v, <a class="code" href="classDirectlyAddressedSet.html" title="A dynamic set of elements with direct addressing.">DirectlyAddressedSet&lt;T&gt;</a> * res){</div>
<div class="line"><a name="l00985"></a><span class="lineno">  985</span>&#160;        <a class="code" href="classDirectlyAddressedSet_1_1Iterator.html">Iterator</a>* it = newComplIterator();</div>
<div class="line"><a name="l00986"></a><span class="lineno">  986</span>&#160;        <span class="keywordflow">while</span>(it-&gt;<a class="code" href="classDirectlyAddressedSet_1_1Iterator.html#ad70bbb3ac269e9fa2601d5b4c20e3f4b" title="Verify if the set has same element not enumerated yet.">hasNext</a>()){</div>
<div class="line"><a name="l00987"></a><span class="lineno">  987</span>&#160;                T elem = it-&gt;<a class="code" href="classDirectlyAddressedSet_1_1Iterator.html#ad6c581f7e5ec3a49f14d14fbc6ec1af2" title="Enumerate the elements in the set.">next</a>();</div>
<div class="line"><a name="l00988"></a><span class="lineno">  988</span>&#160;                <span class="keywordflow">if</span>(v-&gt;<a class="code" href="classDirectlyAddressedSet.html#a783217cdd441159295d9a95196fdcf79" title="Verify if a element of the universe is in the set.">isInSet</a>(elem))res-&gt;<a class="code" href="classDirectlyAddressedSet.html#a7c87b183797e4273764d37877cc197ef" title="Add the specified element to the set.">toSet</a>(elem);</div>
<div class="line"><a name="l00989"></a><span class="lineno">  989</span>&#160;        }</div>
<div class="line"><a name="l00990"></a><span class="lineno">  990</span>&#160;}</div>
<div class="line"><a name="l00991"></a><span class="lineno">  991</span>&#160;</div>
<div class="line"><a name="l00992"></a><span class="lineno">  992</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> T&gt;</div>
<div class="line"><a name="l00993"></a><span class="lineno"><a class="code" href="classDirectlyAddressedSet.html#a938cf82ffd6130f585f6b3f4e980f721">  993</a></span>&#160;<span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classDirectlyAddressedSet.html#a8a228426f531e902c052e1c5812a49bd" title="Difference between the current complement and the set represented by the object v.">DirectlyAddressedSet&lt;T&gt;::complDiffSet</a>(<a class="code" href="classDirectlyAddressedSet.html" title="A dynamic set of elements with direct addressing.">DirectlyAddressedSet&lt;T&gt;</a> * v, <a class="code" href="classDirectlyAddressedSet.html" title="A dynamic set of elements with direct addressing.">DirectlyAddressedSet&lt;T&gt;</a> * res){</div>
<div class="line"><a name="l00994"></a><span class="lineno">  994</span>&#160;        <a class="code" href="classDirectlyAddressedSet_1_1Iterator.html">Iterator</a>* it = newComplIterator();</div>
<div class="line"><a name="l00995"></a><span class="lineno">  995</span>&#160;        T elem;</div>
<div class="line"><a name="l00996"></a><span class="lineno">  996</span>&#160;        <span class="keywordflow">while</span>(it-&gt;<a class="code" href="classDirectlyAddressedSet_1_1Iterator.html#ad70bbb3ac269e9fa2601d5b4c20e3f4b" title="Verify if the set has same element not enumerated yet.">hasNext</a>()){</div>
<div class="line"><a name="l00997"></a><span class="lineno">  997</span>&#160;                elem = it-&gt;<a class="code" href="classDirectlyAddressedSet_1_1Iterator.html#ad6c581f7e5ec3a49f14d14fbc6ec1af2" title="Enumerate the elements in the set.">next</a>();</div>
<div class="line"><a name="l00998"></a><span class="lineno">  998</span>&#160;                <span class="keywordflow">if</span>(v-&gt;<a class="code" href="classDirectlyAddressedSet.html#a90c8f0fb7df05d88c9a896e56b14ef0c" title="Verify if a element of the universe is in the complement.">isInCompl</a>(elem))res-&gt;<a class="code" href="classDirectlyAddressedSet.html#a7c87b183797e4273764d37877cc197ef" title="Add the specified element to the set.">toSet</a>(elem);</div>
<div class="line"><a name="l00999"></a><span class="lineno">  999</span>&#160;        }</div>
<div class="line"><a name="l01000"></a><span class="lineno"> 1000</span>&#160;}</div>
<div class="line"><a name="l01001"></a><span class="lineno"> 1001</span>&#160;</div>
<div class="line"><a name="l01002"></a><span class="lineno"> 1002</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> T&gt;</div>
<div class="line"><a name="l01003"></a><span class="lineno"><a class="code" href="classDirectlyAddressedSet.html#ad817798347b6fbca987f557b1f1f147e"> 1003</a></span>&#160;<span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classDirectlyAddressedSet.html#ad817798347b6fbca987f557b1f1f147e" title="Union between the current set and the complement of the set represented by the object v...">DirectlyAddressedSet&lt;T&gt;::setUnionCompl</a>(<a class="code" href="classDirectlyAddressedSet.html" title="A dynamic set of elements with direct addressing.">DirectlyAddressedSet&lt;T&gt;</a> * v){</div>
<div class="line"><a name="l01004"></a><span class="lineno"> 1004</span>&#160;        <a class="code" href="classDirectlyAddressedSet_1_1Iterator.html">Iterator</a>* itv = v-&gt;<a class="code" href="classDirectlyAddressedSet.html#a8a481c4ef2de99d83f37f04196fb4f38" title="A Iterator for the complement of the set represented by the object.">newComplIterator</a>();</div>
<div class="line"><a name="l01005"></a><span class="lineno"> 1005</span>&#160;</div>
<div class="line"><a name="l01006"></a><span class="lineno"> 1006</span>&#160;        <span class="keywordflow">while</span>(itv-&gt;<a class="code" href="classDirectlyAddressedSet_1_1Iterator.html#ad70bbb3ac269e9fa2601d5b4c20e3f4b" title="Verify if the set has same element not enumerated yet.">hasNext</a>())</div>
<div class="line"><a name="l01007"></a><span class="lineno"> 1007</span>&#160;                toSet(itv-&gt;<a class="code" href="classDirectlyAddressedSet_1_1Iterator.html#ad6c581f7e5ec3a49f14d14fbc6ec1af2" title="Enumerate the elements in the set.">next</a>());</div>
<div class="line"><a name="l01008"></a><span class="lineno"> 1008</span>&#160;}</div>
<div class="line"><a name="l01009"></a><span class="lineno"> 1009</span>&#160;</div>
<div class="line"><a name="l01010"></a><span class="lineno"> 1010</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> T&gt;</div>
<div class="line"><a name="l01011"></a><span class="lineno"><a class="code" href="classDirectlyAddressedSet.html#a69a64828d92e73b978e4f9f6af6e406d"> 1011</a></span>&#160;<span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classDirectlyAddressedSet.html#a69a64828d92e73b978e4f9f6af6e406d" title="Simetric Difference between the current set and the complement of the set represented by the object v...">DirectlyAddressedSet&lt;T&gt;::setDiffSimetricCompl</a>(<a class="code" href="classDirectlyAddressedSet.html" title="A dynamic set of elements with direct addressing.">DirectlyAddressedSet&lt;T&gt;</a> * v){</div>
<div class="line"><a name="l01012"></a><span class="lineno"> 1012</span>&#160;        <a class="code" href="classDirectlyAddressedSet_1_1Iterator.html">Iterator</a>* itv = v-&gt;<a class="code" href="classDirectlyAddressedSet.html#a8a481c4ef2de99d83f37f04196fb4f38" title="A Iterator for the complement of the set represented by the object.">newComplIterator</a>();</div>
<div class="line"><a name="l01013"></a><span class="lineno"> 1013</span>&#160;</div>
<div class="line"><a name="l01014"></a><span class="lineno"> 1014</span>&#160;        <span class="keywordflow">while</span>(itv-&gt;<a class="code" href="classDirectlyAddressedSet_1_1Iterator.html#ad70bbb3ac269e9fa2601d5b4c20e3f4b" title="Verify if the set has same element not enumerated yet.">hasNext</a>())</div>
<div class="line"><a name="l01015"></a><span class="lineno"> 1015</span>&#160;                swapElement(itv-&gt;<a class="code" href="classDirectlyAddressedSet_1_1Iterator.html#ad6c581f7e5ec3a49f14d14fbc6ec1af2" title="Enumerate the elements in the set.">next</a>());</div>
<div class="line"><a name="l01016"></a><span class="lineno"> 1016</span>&#160;}</div>
<div class="line"><a name="l01017"></a><span class="lineno"> 1017</span>&#160;</div>
<div class="line"><a name="l01018"></a><span class="lineno"> 1018</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> T&gt;</div>
<div class="line"><a name="l01019"></a><span class="lineno"><a class="code" href="classDirectlyAddressedSet.html#a7eeddf95108798d0b2a15c2b78593d01"> 1019</a></span>&#160;<span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classDirectlyAddressedSet.html#a7eeddf95108798d0b2a15c2b78593d01" title="Intersection between the current set and the complement of the set represented by the object v...">DirectlyAddressedSet&lt;T&gt;::setIntersecCompl</a>(<a class="code" href="classDirectlyAddressedSet.html" title="A dynamic set of elements with direct addressing.">DirectlyAddressedSet&lt;T&gt;</a> * v){</div>
<div class="line"><a name="l01020"></a><span class="lineno"> 1020</span>&#160;        <a class="code" href="classDirectlyAddressedSet_1_1Iterator.html">Iterator</a>* it = newSetIterator();</div>
<div class="line"><a name="l01021"></a><span class="lineno"> 1021</span>&#160;</div>
<div class="line"><a name="l01022"></a><span class="lineno"> 1022</span>&#160;        T elem;</div>
<div class="line"><a name="l01023"></a><span class="lineno"> 1023</span>&#160;        <span class="keywordflow">while</span>(it-&gt;<a class="code" href="classDirectlyAddressedSet_1_1Iterator.html#ad70bbb3ac269e9fa2601d5b4c20e3f4b" title="Verify if the set has same element not enumerated yet.">hasNext</a>()){</div>
<div class="line"><a name="l01024"></a><span class="lineno"> 1024</span>&#160;                elem = it-&gt;<a class="code" href="classDirectlyAddressedSet_1_1Iterator.html#ad6c581f7e5ec3a49f14d14fbc6ec1af2" title="Enumerate the elements in the set.">next</a>();</div>
<div class="line"><a name="l01025"></a><span class="lineno"> 1025</span>&#160;                <span class="keywordflow">if</span>(v-&gt;<a class="code" href="classDirectlyAddressedSet.html#a90c8f0fb7df05d88c9a896e56b14ef0c" title="Verify if a element of the universe is in the complement.">isInCompl</a>(elem))toCompl(elem);</div>
<div class="line"><a name="l01026"></a><span class="lineno"> 1026</span>&#160;        }</div>
<div class="line"><a name="l01027"></a><span class="lineno"> 1027</span>&#160;}</div>
<div class="line"><a name="l01028"></a><span class="lineno"> 1028</span>&#160;</div>
<div class="line"><a name="l01029"></a><span class="lineno"> 1029</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> T&gt;</div>
<div class="line"><a name="l01030"></a><span class="lineno"><a class="code" href="classDirectlyAddressedSet.html#ac31e4e5fd412fc018bd5573bdcf47d99"> 1030</a></span>&#160;<span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classDirectlyAddressedSet.html#ac31e4e5fd412fc018bd5573bdcf47d99" title="Difference between the current set and the set represented by the object v.">DirectlyAddressedSet&lt;T&gt;::setDiffCompl</a>(<a class="code" href="classDirectlyAddressedSet.html" title="A dynamic set of elements with direct addressing.">DirectlyAddressedSet&lt;T&gt;</a> * v){</div>
<div class="line"><a name="l01031"></a><span class="lineno"> 1031</span>&#160;        <a class="code" href="classDirectlyAddressedSet_1_1Iterator.html">Iterator</a>* it = newSetIterator();</div>
<div class="line"><a name="l01032"></a><span class="lineno"> 1032</span>&#160;</div>
<div class="line"><a name="l01033"></a><span class="lineno"> 1033</span>&#160;        T elem;</div>
<div class="line"><a name="l01034"></a><span class="lineno"> 1034</span>&#160;        <span class="keywordflow">while</span>(it-&gt;<a class="code" href="classDirectlyAddressedSet_1_1Iterator.html#ad70bbb3ac269e9fa2601d5b4c20e3f4b" title="Verify if the set has same element not enumerated yet.">hasNext</a>()){</div>
<div class="line"><a name="l01035"></a><span class="lineno"> 1035</span>&#160;                elem = it-&gt;<a class="code" href="classDirectlyAddressedSet_1_1Iterator.html#ad6c581f7e5ec3a49f14d14fbc6ec1af2" title="Enumerate the elements in the set.">next</a>();</div>
<div class="line"><a name="l01036"></a><span class="lineno"> 1036</span>&#160;                <span class="keywordflow">if</span>(v-&gt;<a class="code" href="classDirectlyAddressedSet.html#a783217cdd441159295d9a95196fdcf79" title="Verify if a element of the universe is in the set.">isInSet</a>(elem))toCompl(elem);</div>
<div class="line"><a name="l01037"></a><span class="lineno"> 1037</span>&#160;        }</div>
<div class="line"><a name="l01038"></a><span class="lineno"> 1038</span>&#160;}</div>
<div class="line"><a name="l01039"></a><span class="lineno"> 1039</span>&#160;</div>
<div class="line"><a name="l01040"></a><span class="lineno"> 1040</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> T&gt;</div>
<div class="line"><a name="l01041"></a><span class="lineno"><a class="code" href="classDirectlyAddressedSet.html#a1c85b0ec7133e9bcd000391bf1e0b96e"> 1041</a></span>&#160;<span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classDirectlyAddressedSet.html#ad817798347b6fbca987f557b1f1f147e" title="Union between the current set and the complement of the set represented by the object v...">DirectlyAddressedSet&lt;T&gt;::setUnionCompl</a>(<a class="code" href="classDirectlyAddressedSet.html" title="A dynamic set of elements with direct addressing.">DirectlyAddressedSet&lt;T&gt;</a> * v, <a class="code" href="classDirectlyAddressedSet.html" title="A dynamic set of elements with direct addressing.">DirectlyAddressedSet&lt;T&gt;</a> * res){</div>
<div class="line"><a name="l01042"></a><span class="lineno"> 1042</span>&#160;        <a class="code" href="classDirectlyAddressedSet_1_1Iterator.html">Iterator</a>* it = newSetIterator();</div>
<div class="line"><a name="l01043"></a><span class="lineno"> 1043</span>&#160;        <a class="code" href="classDirectlyAddressedSet_1_1Iterator.html">Iterator</a>* itv = v-&gt;<a class="code" href="classDirectlyAddressedSet.html#a8a481c4ef2de99d83f37f04196fb4f38" title="A Iterator for the complement of the set represented by the object.">newComplIterator</a>();</div>
<div class="line"><a name="l01044"></a><span class="lineno"> 1044</span>&#160;        <span class="keywordflow">while</span>(it-&gt;<a class="code" href="classDirectlyAddressedSet_1_1Iterator.html#ad70bbb3ac269e9fa2601d5b4c20e3f4b" title="Verify if the set has same element not enumerated yet.">hasNext</a>())</div>
<div class="line"><a name="l01045"></a><span class="lineno"> 1045</span>&#160;                res-&gt;<a class="code" href="classDirectlyAddressedSet.html#a7c87b183797e4273764d37877cc197ef" title="Add the specified element to the set.">toSet</a>(it-&gt;<a class="code" href="classDirectlyAddressedSet_1_1Iterator.html#ad6c581f7e5ec3a49f14d14fbc6ec1af2" title="Enumerate the elements in the set.">next</a>());</div>
<div class="line"><a name="l01046"></a><span class="lineno"> 1046</span>&#160;</div>
<div class="line"><a name="l01047"></a><span class="lineno"> 1047</span>&#160;        <span class="keywordflow">while</span>(itv-&gt;<a class="code" href="classDirectlyAddressedSet_1_1Iterator.html#ad70bbb3ac269e9fa2601d5b4c20e3f4b" title="Verify if the set has same element not enumerated yet.">hasNext</a>())</div>
<div class="line"><a name="l01048"></a><span class="lineno"> 1048</span>&#160;                res-&gt;<a class="code" href="classDirectlyAddressedSet.html#a7c87b183797e4273764d37877cc197ef" title="Add the specified element to the set.">toSet</a>(itv-&gt;<a class="code" href="classDirectlyAddressedSet_1_1Iterator.html#ad6c581f7e5ec3a49f14d14fbc6ec1af2" title="Enumerate the elements in the set.">next</a>());</div>
<div class="line"><a name="l01049"></a><span class="lineno"> 1049</span>&#160;}</div>
<div class="line"><a name="l01050"></a><span class="lineno"> 1050</span>&#160;</div>
<div class="line"><a name="l01051"></a><span class="lineno"> 1051</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> T&gt;</div>
<div class="line"><a name="l01052"></a><span class="lineno"><a class="code" href="classDirectlyAddressedSet.html#a83b467fd5c17e57373e00007156ff78b"> 1052</a></span>&#160;<span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classDirectlyAddressedSet.html#a69a64828d92e73b978e4f9f6af6e406d" title="Simetric Difference between the current set and the complement of the set represented by the object v...">DirectlyAddressedSet&lt;T&gt;::setDiffSimetricCompl</a>(<a class="code" href="classDirectlyAddressedSet.html" title="A dynamic set of elements with direct addressing.">DirectlyAddressedSet&lt;T&gt;</a> * v, <a class="code" href="classDirectlyAddressedSet.html" title="A dynamic set of elements with direct addressing.">DirectlyAddressedSet&lt;T&gt;</a> * res){</div>
<div class="line"><a name="l01053"></a><span class="lineno"> 1053</span>&#160;        <a class="code" href="classDirectlyAddressedSet_1_1Iterator.html">Iterator</a>* it = newSetIterator();</div>
<div class="line"><a name="l01054"></a><span class="lineno"> 1054</span>&#160;        <a class="code" href="classDirectlyAddressedSet_1_1Iterator.html">Iterator</a>* itv = v-&gt;<a class="code" href="classDirectlyAddressedSet.html#a8a481c4ef2de99d83f37f04196fb4f38" title="A Iterator for the complement of the set represented by the object.">newComplIterator</a>();</div>
<div class="line"><a name="l01055"></a><span class="lineno"> 1055</span>&#160;        <span class="keywordflow">while</span>(it-&gt;<a class="code" href="classDirectlyAddressedSet_1_1Iterator.html#ad70bbb3ac269e9fa2601d5b4c20e3f4b" title="Verify if the set has same element not enumerated yet.">hasNext</a>())</div>
<div class="line"><a name="l01056"></a><span class="lineno"> 1056</span>&#160;                res-&gt;<a class="code" href="classDirectlyAddressedSet.html#a7c87b183797e4273764d37877cc197ef" title="Add the specified element to the set.">toSet</a>(it-&gt;<a class="code" href="classDirectlyAddressedSet_1_1Iterator.html#ad6c581f7e5ec3a49f14d14fbc6ec1af2" title="Enumerate the elements in the set.">next</a>());</div>
<div class="line"><a name="l01057"></a><span class="lineno"> 1057</span>&#160;</div>
<div class="line"><a name="l01058"></a><span class="lineno"> 1058</span>&#160;        <span class="keywordflow">while</span>(itv-&gt;<a class="code" href="classDirectlyAddressedSet_1_1Iterator.html#ad70bbb3ac269e9fa2601d5b4c20e3f4b" title="Verify if the set has same element not enumerated yet.">hasNext</a>())</div>
<div class="line"><a name="l01059"></a><span class="lineno"> 1059</span>&#160;                res-&gt;<a class="code" href="classDirectlyAddressedSet.html#ae3f708aa95649ecae727f2acc5999c38" title="Swap a element between the set and the complement.">swapElement</a>(itv-&gt;<a class="code" href="classDirectlyAddressedSet_1_1Iterator.html#ad6c581f7e5ec3a49f14d14fbc6ec1af2" title="Enumerate the elements in the set.">next</a>());</div>
<div class="line"><a name="l01060"></a><span class="lineno"> 1060</span>&#160;}</div>
<div class="line"><a name="l01061"></a><span class="lineno"> 1061</span>&#160;</div>
<div class="line"><a name="l01062"></a><span class="lineno"> 1062</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> T&gt;</div>
<div class="line"><a name="l01063"></a><span class="lineno"><a class="code" href="classDirectlyAddressedSet.html#aff524829694e4296d862891826212f29"> 1063</a></span>&#160;<span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classDirectlyAddressedSet.html#a7eeddf95108798d0b2a15c2b78593d01" title="Intersection between the current set and the complement of the set represented by the object v...">DirectlyAddressedSet&lt;T&gt;::setIntersecCompl</a>(<a class="code" href="classDirectlyAddressedSet.html" title="A dynamic set of elements with direct addressing.">DirectlyAddressedSet&lt;T&gt;</a> * v, <a class="code" href="classDirectlyAddressedSet.html" title="A dynamic set of elements with direct addressing.">DirectlyAddressedSet&lt;T&gt;</a> * res){</div>
<div class="line"><a name="l01064"></a><span class="lineno"> 1064</span>&#160;        <a class="code" href="classDirectlyAddressedSet_1_1Iterator.html">Iterator</a>* it = newComplIterator();</div>
<div class="line"><a name="l01065"></a><span class="lineno"> 1065</span>&#160;</div>
<div class="line"><a name="l01066"></a><span class="lineno"> 1066</span>&#160;        T elem;</div>
<div class="line"><a name="l01067"></a><span class="lineno"> 1067</span>&#160;        <span class="keywordflow">while</span>(it-&gt;<a class="code" href="classDirectlyAddressedSet_1_1Iterator.html#ad70bbb3ac269e9fa2601d5b4c20e3f4b" title="Verify if the set has same element not enumerated yet.">hasNext</a>()){</div>
<div class="line"><a name="l01068"></a><span class="lineno"> 1068</span>&#160;                elem = it-&gt;<a class="code" href="classDirectlyAddressedSet_1_1Iterator.html#ad6c581f7e5ec3a49f14d14fbc6ec1af2" title="Enumerate the elements in the set.">next</a>();</div>
<div class="line"><a name="l01069"></a><span class="lineno"> 1069</span>&#160;                <span class="keywordflow">if</span>(v-&gt;<a class="code" href="classDirectlyAddressedSet.html#a90c8f0fb7df05d88c9a896e56b14ef0c" title="Verify if a element of the universe is in the complement.">isInCompl</a>(elem))res-&gt;<a class="code" href="classDirectlyAddressedSet.html#a7c87b183797e4273764d37877cc197ef" title="Add the specified element to the set.">toSet</a>(elem);</div>
<div class="line"><a name="l01070"></a><span class="lineno"> 1070</span>&#160;        }</div>
<div class="line"><a name="l01071"></a><span class="lineno"> 1071</span>&#160;}</div>
<div class="line"><a name="l01072"></a><span class="lineno"> 1072</span>&#160;</div>
<div class="line"><a name="l01073"></a><span class="lineno"> 1073</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> T&gt;</div>
<div class="line"><a name="l01074"></a><span class="lineno"><a class="code" href="classDirectlyAddressedSet.html#a27b49fae9a9f175d872e75b61b0cc345"> 1074</a></span>&#160;<span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classDirectlyAddressedSet.html#ac31e4e5fd412fc018bd5573bdcf47d99" title="Difference between the current set and the set represented by the object v.">DirectlyAddressedSet&lt;T&gt;::setDiffCompl</a>(<a class="code" href="classDirectlyAddressedSet.html" title="A dynamic set of elements with direct addressing.">DirectlyAddressedSet&lt;T&gt;</a> * v, <a class="code" href="classDirectlyAddressedSet.html" title="A dynamic set of elements with direct addressing.">DirectlyAddressedSet&lt;T&gt;</a> * res){</div>
<div class="line"><a name="l01075"></a><span class="lineno"> 1075</span>&#160;        <a class="code" href="classDirectlyAddressedSet_1_1Iterator.html">Iterator</a>* it = newComplIterator();</div>
<div class="line"><a name="l01076"></a><span class="lineno"> 1076</span>&#160;</div>
<div class="line"><a name="l01077"></a><span class="lineno"> 1077</span>&#160;        T elem;</div>
<div class="line"><a name="l01078"></a><span class="lineno"> 1078</span>&#160;        <span class="keywordflow">while</span>(it-&gt;<a class="code" href="classDirectlyAddressedSet_1_1Iterator.html#ad70bbb3ac269e9fa2601d5b4c20e3f4b" title="Verify if the set has same element not enumerated yet.">hasNext</a>()){</div>
<div class="line"><a name="l01079"></a><span class="lineno"> 1079</span>&#160;                elem = it-&gt;<a class="code" href="classDirectlyAddressedSet_1_1Iterator.html#ad6c581f7e5ec3a49f14d14fbc6ec1af2" title="Enumerate the elements in the set.">next</a>();</div>
<div class="line"><a name="l01080"></a><span class="lineno"> 1080</span>&#160;                <span class="keywordflow">if</span>(v-&gt;<a class="code" href="classDirectlyAddressedSet.html#a783217cdd441159295d9a95196fdcf79" title="Verify if a element of the universe is in the set.">isInSet</a>(elem))res-&gt;<a class="code" href="classDirectlyAddressedSet.html#a7c87b183797e4273764d37877cc197ef" title="Add the specified element to the set.">toSet</a>(elem);</div>
<div class="line"><a name="l01081"></a><span class="lineno"> 1081</span>&#160;        }</div>
<div class="line"><a name="l01082"></a><span class="lineno"> 1082</span>&#160;</div>
<div class="line"><a name="l01083"></a><span class="lineno"> 1083</span>&#160;}</div>
<div class="line"><a name="l01084"></a><span class="lineno"> 1084</span>&#160;</div>
<div class="line"><a name="l01085"></a><span class="lineno"> 1085</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> T&gt;</div>
<div class="line"><a name="l01086"></a><span class="lineno"><a class="code" href="classDirectlyAddressedSet.html#aa2fdce300c7736664f2f88f4466ebc89"> 1086</a></span>&#160;<span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classDirectlyAddressedSet.html#aa2fdce300c7736664f2f88f4466ebc89" title="Union between the current complement and the compplement of the set represented by the object v...">DirectlyAddressedSet&lt;T&gt;::complUnionCompl</a>(<a class="code" href="classDirectlyAddressedSet.html" title="A dynamic set of elements with direct addressing.">DirectlyAddressedSet&lt;T&gt;</a> * v){</div>
<div class="line"><a name="l01087"></a><span class="lineno"> 1087</span>&#160;        setComplement();</div>
<div class="line"><a name="l01088"></a><span class="lineno"> 1088</span>&#160;        setUnionCompl(v);</div>
<div class="line"><a name="l01089"></a><span class="lineno"> 1089</span>&#160;}</div>
<div class="line"><a name="l01090"></a><span class="lineno"> 1090</span>&#160;</div>
<div class="line"><a name="l01091"></a><span class="lineno"> 1091</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> T&gt;</div>
<div class="line"><a name="l01092"></a><span class="lineno"><a class="code" href="classDirectlyAddressedSet.html#af7c93c586179b10b477db2052f18d0e9"> 1092</a></span>&#160;<span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classDirectlyAddressedSet.html#af7c93c586179b10b477db2052f18d0e9" title="Simetric Difference between the current complement and the complement of the set represented by the o...">DirectlyAddressedSet&lt;T&gt;::complDiffSimetricCompl</a>(<a class="code" href="classDirectlyAddressedSet.html" title="A dynamic set of elements with direct addressing.">DirectlyAddressedSet&lt;T&gt;</a> * v){</div>
<div class="line"><a name="l01093"></a><span class="lineno"> 1093</span>&#160;        setComplement();</div>
<div class="line"><a name="l01094"></a><span class="lineno"> 1094</span>&#160;        setDiffSimetricCompl(v);</div>
<div class="line"><a name="l01095"></a><span class="lineno"> 1095</span>&#160;}</div>
<div class="line"><a name="l01096"></a><span class="lineno"> 1096</span>&#160;</div>
<div class="line"><a name="l01097"></a><span class="lineno"> 1097</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> T&gt;</div>
<div class="line"><a name="l01098"></a><span class="lineno"><a class="code" href="classDirectlyAddressedSet.html#acbdd7ba533e20fcbcfc3267bdc1b7e51"> 1098</a></span>&#160;<span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classDirectlyAddressedSet.html#acbdd7ba533e20fcbcfc3267bdc1b7e51" title="Intersection between the current complement and the complement of the set represented by the object v...">DirectlyAddressedSet&lt;T&gt;::complIntersecCompl</a>(<a class="code" href="classDirectlyAddressedSet.html" title="A dynamic set of elements with direct addressing.">DirectlyAddressedSet&lt;T&gt;</a> * v){</div>
<div class="line"><a name="l01099"></a><span class="lineno"> 1099</span>&#160;        setComplement();</div>
<div class="line"><a name="l01100"></a><span class="lineno"> 1100</span>&#160;        setIntersecCompl(v);</div>
<div class="line"><a name="l01101"></a><span class="lineno"> 1101</span>&#160;}</div>
<div class="line"><a name="l01102"></a><span class="lineno"> 1102</span>&#160;</div>
<div class="line"><a name="l01103"></a><span class="lineno"> 1103</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> T&gt;</div>
<div class="line"><a name="l01104"></a><span class="lineno"><a class="code" href="classDirectlyAddressedSet.html#acf5884fb243f2a54196fa8bf2762da57"> 1104</a></span>&#160;<span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classDirectlyAddressedSet.html#acf5884fb243f2a54196fa8bf2762da57" title="Difference between the current set and the set represented by the object v.">DirectlyAddressedSet&lt;T&gt;::complDiffCompl</a>(<a class="code" href="classDirectlyAddressedSet.html" title="A dynamic set of elements with direct addressing.">DirectlyAddressedSet&lt;T&gt;</a> * v){</div>
<div class="line"><a name="l01105"></a><span class="lineno"> 1105</span>&#160;        setComplement();</div>
<div class="line"><a name="l01106"></a><span class="lineno"> 1106</span>&#160;        setDiffCompl(v);</div>
<div class="line"><a name="l01107"></a><span class="lineno"> 1107</span>&#160;}</div>
<div class="line"><a name="l01108"></a><span class="lineno"> 1108</span>&#160;</div>
<div class="line"><a name="l01109"></a><span class="lineno"> 1109</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> T&gt;</div>
<div class="line"><a name="l01110"></a><span class="lineno"><a class="code" href="classDirectlyAddressedSet.html#a90a866844079110eab4e6f1742a7717a"> 1110</a></span>&#160;<span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classDirectlyAddressedSet.html#aa2fdce300c7736664f2f88f4466ebc89" title="Union between the current complement and the compplement of the set represented by the object v...">DirectlyAddressedSet&lt;T&gt;::complUnionCompl</a>(<a class="code" href="classDirectlyAddressedSet.html" title="A dynamic set of elements with direct addressing.">DirectlyAddressedSet&lt;T&gt;</a> * v, <a class="code" href="classDirectlyAddressedSet.html" title="A dynamic set of elements with direct addressing.">DirectlyAddressedSet&lt;T&gt;</a> * res){</div>
<div class="line"><a name="l01111"></a><span class="lineno"> 1111</span>&#160;        <a class="code" href="classDirectlyAddressedSet_1_1Iterator.html">Iterator</a>* it = newComplIterator();</div>
<div class="line"><a name="l01112"></a><span class="lineno"> 1112</span>&#160;        <a class="code" href="classDirectlyAddressedSet_1_1Iterator.html">Iterator</a>* itv = v-&gt;<a class="code" href="classDirectlyAddressedSet.html#a8a481c4ef2de99d83f37f04196fb4f38" title="A Iterator for the complement of the set represented by the object.">newComplIterator</a>();</div>
<div class="line"><a name="l01113"></a><span class="lineno"> 1113</span>&#160;        <span class="keywordflow">while</span>(it-&gt;<a class="code" href="classDirectlyAddressedSet_1_1Iterator.html#ad70bbb3ac269e9fa2601d5b4c20e3f4b" title="Verify if the set has same element not enumerated yet.">hasNext</a>())</div>
<div class="line"><a name="l01114"></a><span class="lineno"> 1114</span>&#160;                res-&gt;<a class="code" href="classDirectlyAddressedSet.html#a7c87b183797e4273764d37877cc197ef" title="Add the specified element to the set.">toSet</a>(it-&gt;<a class="code" href="classDirectlyAddressedSet_1_1Iterator.html#ad6c581f7e5ec3a49f14d14fbc6ec1af2" title="Enumerate the elements in the set.">next</a>());</div>
<div class="line"><a name="l01115"></a><span class="lineno"> 1115</span>&#160;</div>
<div class="line"><a name="l01116"></a><span class="lineno"> 1116</span>&#160;        <span class="keywordflow">while</span>(itv-&gt;<a class="code" href="classDirectlyAddressedSet_1_1Iterator.html#ad70bbb3ac269e9fa2601d5b4c20e3f4b" title="Verify if the set has same element not enumerated yet.">hasNext</a>())</div>
<div class="line"><a name="l01117"></a><span class="lineno"> 1117</span>&#160;                res-&gt;<a class="code" href="classDirectlyAddressedSet.html#a7c87b183797e4273764d37877cc197ef" title="Add the specified element to the set.">toSet</a>(itv-&gt;<a class="code" href="classDirectlyAddressedSet_1_1Iterator.html#ad6c581f7e5ec3a49f14d14fbc6ec1af2" title="Enumerate the elements in the set.">next</a>());</div>
<div class="line"><a name="l01118"></a><span class="lineno"> 1118</span>&#160;}</div>
<div class="line"><a name="l01119"></a><span class="lineno"> 1119</span>&#160;</div>
<div class="line"><a name="l01120"></a><span class="lineno"> 1120</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> T&gt;</div>
<div class="line"><a name="l01121"></a><span class="lineno"><a class="code" href="classDirectlyAddressedSet.html#a9b41e9afafe06d144c07bf10522df446"> 1121</a></span>&#160;<span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classDirectlyAddressedSet.html#af7c93c586179b10b477db2052f18d0e9" title="Simetric Difference between the current complement and the complement of the set represented by the o...">DirectlyAddressedSet&lt;T&gt;::complDiffSimetricCompl</a>(<a class="code" href="classDirectlyAddressedSet.html" title="A dynamic set of elements with direct addressing.">DirectlyAddressedSet&lt;T&gt;</a> * v, <a class="code" href="classDirectlyAddressedSet.html" title="A dynamic set of elements with direct addressing.">DirectlyAddressedSet&lt;T&gt;</a> * res){</div>
<div class="line"><a name="l01122"></a><span class="lineno"> 1122</span>&#160;        <a class="code" href="classDirectlyAddressedSet_1_1Iterator.html">Iterator</a>* it = newComplIterator();</div>
<div class="line"><a name="l01123"></a><span class="lineno"> 1123</span>&#160;        <a class="code" href="classDirectlyAddressedSet_1_1Iterator.html">Iterator</a>* itv = v-&gt;<a class="code" href="classDirectlyAddressedSet.html#a8a481c4ef2de99d83f37f04196fb4f38" title="A Iterator for the complement of the set represented by the object.">newComplIterator</a>();</div>
<div class="line"><a name="l01124"></a><span class="lineno"> 1124</span>&#160;        <span class="keywordflow">while</span>(it-&gt;<a class="code" href="classDirectlyAddressedSet_1_1Iterator.html#ad70bbb3ac269e9fa2601d5b4c20e3f4b" title="Verify if the set has same element not enumerated yet.">hasNext</a>())</div>
<div class="line"><a name="l01125"></a><span class="lineno"> 1125</span>&#160;                res-&gt;<a class="code" href="classDirectlyAddressedSet.html#a7c87b183797e4273764d37877cc197ef" title="Add the specified element to the set.">toSet</a>(it-&gt;<a class="code" href="classDirectlyAddressedSet_1_1Iterator.html#ad6c581f7e5ec3a49f14d14fbc6ec1af2" title="Enumerate the elements in the set.">next</a>());</div>
<div class="line"><a name="l01126"></a><span class="lineno"> 1126</span>&#160;</div>
<div class="line"><a name="l01127"></a><span class="lineno"> 1127</span>&#160;        <span class="keywordflow">while</span>(itv-&gt;<a class="code" href="classDirectlyAddressedSet_1_1Iterator.html#ad70bbb3ac269e9fa2601d5b4c20e3f4b" title="Verify if the set has same element not enumerated yet.">hasNext</a>())</div>
<div class="line"><a name="l01128"></a><span class="lineno"> 1128</span>&#160;                res-&gt;<a class="code" href="classDirectlyAddressedSet.html#ae3f708aa95649ecae727f2acc5999c38" title="Swap a element between the set and the complement.">swapElement</a>(itv-&gt;<a class="code" href="classDirectlyAddressedSet_1_1Iterator.html#ad6c581f7e5ec3a49f14d14fbc6ec1af2" title="Enumerate the elements in the set.">next</a>());</div>
<div class="line"><a name="l01129"></a><span class="lineno"> 1129</span>&#160;}</div>
<div class="line"><a name="l01130"></a><span class="lineno"> 1130</span>&#160;</div>
<div class="line"><a name="l01131"></a><span class="lineno"> 1131</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> T&gt;</div>
<div class="line"><a name="l01132"></a><span class="lineno"><a class="code" href="classDirectlyAddressedSet.html#aeba65b7616eeb226ca9adada6ab583ae"> 1132</a></span>&#160;<span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classDirectlyAddressedSet.html#acbdd7ba533e20fcbcfc3267bdc1b7e51" title="Intersection between the current complement and the complement of the set represented by the object v...">DirectlyAddressedSet&lt;T&gt;::complIntersecCompl</a>(<a class="code" href="classDirectlyAddressedSet.html" title="A dynamic set of elements with direct addressing.">DirectlyAddressedSet&lt;T&gt;</a> * v, <a class="code" href="classDirectlyAddressedSet.html" title="A dynamic set of elements with direct addressing.">DirectlyAddressedSet&lt;T&gt;</a> * res){</div>
<div class="line"><a name="l01133"></a><span class="lineno"> 1133</span>&#160;        <a class="code" href="classDirectlyAddressedSet_1_1Iterator.html">Iterator</a>* it = newComplIterator();</div>
<div class="line"><a name="l01134"></a><span class="lineno"> 1134</span>&#160;</div>
<div class="line"><a name="l01135"></a><span class="lineno"> 1135</span>&#160;        T elem;</div>
<div class="line"><a name="l01136"></a><span class="lineno"> 1136</span>&#160;        <span class="keywordflow">while</span>(it-&gt;<a class="code" href="classDirectlyAddressedSet_1_1Iterator.html#ad70bbb3ac269e9fa2601d5b4c20e3f4b" title="Verify if the set has same element not enumerated yet.">hasNext</a>()){</div>
<div class="line"><a name="l01137"></a><span class="lineno"> 1137</span>&#160;                elem = it-&gt;<a class="code" href="classDirectlyAddressedSet_1_1Iterator.html#ad6c581f7e5ec3a49f14d14fbc6ec1af2" title="Enumerate the elements in the set.">next</a>();</div>
<div class="line"><a name="l01138"></a><span class="lineno"> 1138</span>&#160;                <span class="keywordflow">if</span>(v-&gt;<a class="code" href="classDirectlyAddressedSet.html#a90c8f0fb7df05d88c9a896e56b14ef0c" title="Verify if a element of the universe is in the complement.">isInCompl</a>(elem))res-&gt;<a class="code" href="classDirectlyAddressedSet.html#a7c87b183797e4273764d37877cc197ef" title="Add the specified element to the set.">toSet</a>(elem);</div>
<div class="line"><a name="l01139"></a><span class="lineno"> 1139</span>&#160;        }</div>
<div class="line"><a name="l01140"></a><span class="lineno"> 1140</span>&#160;}</div>
<div class="line"><a name="l01141"></a><span class="lineno"> 1141</span>&#160;</div>
<div class="line"><a name="l01142"></a><span class="lineno"> 1142</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> T&gt;</div>
<div class="line"><a name="l01143"></a><span class="lineno"><a class="code" href="classDirectlyAddressedSet.html#a36b2b6bf4c42eb48141d14d37fe4974e"> 1143</a></span>&#160;<span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classDirectlyAddressedSet.html#acf5884fb243f2a54196fa8bf2762da57" title="Difference between the current set and the set represented by the object v.">DirectlyAddressedSet&lt;T&gt;::complDiffCompl</a>(<a class="code" href="classDirectlyAddressedSet.html" title="A dynamic set of elements with direct addressing.">DirectlyAddressedSet&lt;T&gt;</a> * v, <a class="code" href="classDirectlyAddressedSet.html" title="A dynamic set of elements with direct addressing.">DirectlyAddressedSet&lt;T&gt;</a> * res){</div>
<div class="line"><a name="l01144"></a><span class="lineno"> 1144</span>&#160;        <a class="code" href="classDirectlyAddressedSet_1_1Iterator.html">Iterator</a>* it = newComplIterator();</div>
<div class="line"><a name="l01145"></a><span class="lineno"> 1145</span>&#160;</div>
<div class="line"><a name="l01146"></a><span class="lineno"> 1146</span>&#160;        T elem;</div>
<div class="line"><a name="l01147"></a><span class="lineno"> 1147</span>&#160;        <span class="keywordflow">while</span>(it-&gt;<a class="code" href="classDirectlyAddressedSet_1_1Iterator.html#ad70bbb3ac269e9fa2601d5b4c20e3f4b" title="Verify if the set has same element not enumerated yet.">hasNext</a>()){</div>
<div class="line"><a name="l01148"></a><span class="lineno"> 1148</span>&#160;                elem = it-&gt;<a class="code" href="classDirectlyAddressedSet_1_1Iterator.html#ad6c581f7e5ec3a49f14d14fbc6ec1af2" title="Enumerate the elements in the set.">next</a>();</div>
<div class="line"><a name="l01149"></a><span class="lineno"> 1149</span>&#160;                <span class="keywordflow">if</span>(v-&gt;<a class="code" href="classDirectlyAddressedSet.html#a783217cdd441159295d9a95196fdcf79" title="Verify if a element of the universe is in the set.">isInSet</a>(elem))res-&gt;<a class="code" href="classDirectlyAddressedSet.html#a7c87b183797e4273764d37877cc197ef" title="Add the specified element to the set.">toSet</a>(elem);</div>
<div class="line"><a name="l01150"></a><span class="lineno"> 1150</span>&#160;        }</div>
<div class="line"><a name="l01151"></a><span class="lineno"> 1151</span>&#160;}</div>
<div class="line"><a name="l01152"></a><span class="lineno"> 1152</span>&#160;</div>
<div class="line"><a name="l01153"></a><span class="lineno"> 1153</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> T&gt;</div>
<div class="line"><a name="l01154"></a><span class="lineno"><a class="code" href="classDirectlyAddressedSet.html#a709b0ab9591a13f98804316ecbe7d1eb"> 1154</a></span>&#160;<span class="keyword">inline</span> <span class="keywordtype">long</span> <a class="code" href="classDirectlyAddressedSet.html#a709b0ab9591a13f98804316ecbe7d1eb" title="The cardinality of the set represented by the object.">DirectlyAddressedSet&lt;T&gt;::cardOfSet</a>(){</div>
<div class="line"><a name="l01155"></a><span class="lineno"> 1155</span>&#160;        <a class="code" href="classDirectlyAddressedSet_1_1Iterator.html">Iterator</a>* it = newSetIterator();</div>
<div class="line"><a name="l01156"></a><span class="lineno"> 1156</span>&#160;        <span class="keywordtype">long</span> count = 0;</div>
<div class="line"><a name="l01157"></a><span class="lineno"> 1157</span>&#160;        <span class="keywordflow">while</span>(it-&gt;<a class="code" href="classDirectlyAddressedSet_1_1Iterator.html#ad70bbb3ac269e9fa2601d5b4c20e3f4b" title="Verify if the set has same element not enumerated yet.">hasNext</a>())count++;</div>
<div class="line"><a name="l01158"></a><span class="lineno"> 1158</span>&#160;}</div>
<div class="line"><a name="l01159"></a><span class="lineno"> 1159</span>&#160;</div>
<div class="line"><a name="l01160"></a><span class="lineno"> 1160</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> T&gt;</div>
<div class="line"><a name="l01161"></a><span class="lineno"><a class="code" href="classDirectlyAddressedSet.html#a91bbca22665b94075c7034c3ae805d25"> 1161</a></span>&#160;<span class="keyword">inline</span> <span class="keywordtype">long</span> <a class="code" href="classDirectlyAddressedSet.html#a91bbca22665b94075c7034c3ae805d25" title="The cardinality of the complement of the set represented by the object.">DirectlyAddressedSet&lt;T&gt;::cardOfCompl</a>(){</div>
<div class="line"><a name="l01162"></a><span class="lineno"> 1162</span>&#160;        <a class="code" href="classDirectlyAddressedSet_1_1Iterator.html">Iterator</a>* it = newComplIterator();</div>
<div class="line"><a name="l01163"></a><span class="lineno"> 1163</span>&#160;        <span class="keywordtype">long</span> count = 0;</div>
<div class="line"><a name="l01164"></a><span class="lineno"> 1164</span>&#160;        <span class="keywordflow">while</span>(it-&gt;<a class="code" href="classDirectlyAddressedSet_1_1Iterator.html#ad70bbb3ac269e9fa2601d5b4c20e3f4b" title="Verify if the set has same element not enumerated yet.">hasNext</a>())count++;</div>
<div class="line"><a name="l01165"></a><span class="lineno"> 1165</span>&#160;}</div>
<div class="line"><a name="l01166"></a><span class="lineno"> 1166</span>&#160;</div>
<div class="line"><a name="l01167"></a><span class="lineno"> 1167</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> T&gt;</div>
<div class="line"><a name="l01168"></a><span class="lineno"><a class="code" href="classOrderedSetFactory.html"> 1168</a></span>&#160;<span class="keyword">class </span><a class="code" href="classOrderedSetFactory.html">OrderedSetFactory</a>{</div>
<div class="line"><a name="l01169"></a><span class="lineno"> 1169</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l01170"></a><span class="lineno"> 1170</span>&#160;        <span class="keyword">virtual</span> <a class="code" href="classDirectlyAddressedSet.html" title="A dynamic set of elements with direct addressing.">DirectlyAddressedSet&lt;T&gt;</a>* <a class="code" href="classOrderedSetFactory.html#aaf7a225b78988593892520d80ca9ee50">newOrderedSet</a>(<span class="keywordtype">long</span> n) = 0;</div>
<div class="line"><a name="l01171"></a><span class="lineno"> 1171</span>&#160;</div>
<div class="line"><a name="l01172"></a><span class="lineno"> 1172</span>&#160;        <span class="keyword">virtual</span> <a class="code" href="classDirectlyAddressedSet.html" title="A dynamic set of elements with direct addressing.">DirectlyAddressedSet&lt;T&gt;</a>* <a class="code" href="classOrderedSetFactory.html#aaf7a225b78988593892520d80ca9ee50">newOrderedSet</a>(<span class="keywordtype">long</span> n, <span class="keywordtype">void</span>* handle) = 0;</div>
<div class="line"><a name="l01173"></a><span class="lineno"> 1173</span>&#160;};</div>
<div class="line"><a name="l01174"></a><span class="lineno"> 1174</span>&#160;</div>
<div class="line"><a name="l01175"></a><span class="lineno"> 1175</span>&#160;<span class="preprocessor">#endif </span><span class="comment">/* ORDEREDSET_H_ */</span><span class="preprocessor"></span></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Tue Nov 6 2012 17:19:23 for Disjoint Stable Set Problems - Formulations by Representatives and Combinatorial Solvers by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.1.1
</small></address>
</body>
</html>
